10 pts.
 Batch Program
How can I Execute a RPGLE program in Batch after the IPL is fully loaded

Software/Hardware used:
ASKED: February 20, 2009  5:03 PM
UPDATED: February 23, 2009  8:20 PM

Answer Wiki:
Hi, You can add the job to your startup program. Find your startup program in WRKSYSVAL QSTRUPPGM - this should be a CL program. You can use RTVCLSRC to rerieve the source of the program and then modify it to call your RPG program. I would suggest that you do a SBMJOB from the CL, making sure that you have a job description available to set up the library list if necessary. Don't forget to qualify your program name with the necessary library name, otherwise your program may not be found. <b>Make sure that you test your changes before you try an IPL - solving problems with startup programs can be tricky even for the most experienced AS400 people and IBM are likely to charge a considerable fee to solve such problems.</b> Regards, Martin Gilbert.
Last Wiki Answer Submitted:  February 20, 2009  5:13 pm  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

You can also add an auto-start job entry (command ADDAJE) to a subsystem. The job will start when that subsystem is started. The help-text for the command gives all the details.

 830 pts.