March 2010 Q&A
I would like to run the Robot/SAVE Status Message Report daily. How do I set this up in Robot/SCHEDULE?
The call statement to produce the report varies depending on what you want to see. Here are three examples that use June 14–15, 2010 as the date range:
To report on completed saves:
CALL PGM(RBS435) PARM('11006141100615SX')To report on normal completions:
CALL PGM(RBS435) PARM('11006141100615CX')To report on all status messages:
CALL PGM(RBS435) PARM('11006141100615AX')If you plan to run this daily, you want Robot/SCHEDULE to fill in the dates automatically. To do this, create Reserved Command Variables (RCVs) in the format YYMMDD for the dates you want the report to begin (@@SDATE) and end (@@EDATE).
Then, choose the type of report you want to see. For our example, we chose all statuses. Set up a Robot/SCHEDULE command-type job, making sure that RBSPGMLIB and RBSDTALIB are in the library list for the job.
On the Command Entry screen, enter the call statement, using the RCVs you created:
CALL PGM(RBS435) PARM('1@@SDATE1@@EDATEAX')Then, indicate that the job should run daily and you’re all set!



