Within RPG, UDATE, and *DATE will return the session date. You can then return this by parameter to your CL. Dave
Unconfigured Ad Widget
Collapse
Announcement
Collapse
No announcement yet.
Retrieving Submit Job Date in CL
Collapse
X
-
Retrieving Submit Job Date in CL
Keep in mind that changing parameter Job date (DATE) for SBMJOB command will change submitted RPG program UDATE,*DATE and PSS (program status data structure) date to this value: SBMJOB CMD(CALL SOMEPGM) DATE(01311995) will set UDATE = 1/31/95, *DATE = 01311995, DS_DATE = 013195. RPG TIME gives current date/time when submitted RPG is being executed.
-
Retrieving Submit Job Date in CL
We are calling a CL program from a batch menu option and submitting it with a job date. We would like to retrieve the submit job date in the CL, but the DATE parameter in RTVJOBA is returning the system date. Can we get at the submit job date?
Comment
-
Retrieving Submit Job Date in CL
All of the aforementioned methods of getting the "Job date" will work. Also, the QUSRJOBI API returning format JOBI0400 has a couple of dates that will work for getting the "Submitted job date". Both are CHAR(13), the 1st: Date and time job entered system. The 2nd: Date and time job became active. Unless a "Scheduled date & time" are used on the SBMJOB or potentially a job entered the system before midnight and became active after midnight...The 1st date/time is generally the "Job date" but most of the time both would be the same date.
Comment
Comment