Modifying PeopleSoft Process Scheduler Programs to Run with RemoteCall
To enable an existing program that runs under PeopleSoft Process Scheduler to run under RemoteCall as well, make the following changes:
-
Include the PTCNETRT copy member.
-
Include the PTCNCHEK member before the connection call to PTPSQLRT.
-
Add the call to PTPNETRT ACTION-DONE just before the program terminates (after the call to disconnect from the database).
This should be conditional on whether you are RUNNING-REMOTE-CALL.
-
If you are running as a remote call, ensure that PROCESS-INSTANCE OF PRUNSTATUS is not set.
Otherwise your calls to PTCPSTAT try to update the PSPRCSRQST table. This does not cause an error, but it is unnecessary processing.
This program can now run from PeopleSoft Process Scheduler or from RemoteCall. If a program has to pass parameters, it must have RemoteCall-specific ACTION-GET and ACTION-PUT calls.