Tom, It may be possible, but it requires the use of many APIs. WRKJOB opens a screen with menu options, as you might know. Option 14 is List Open Files API, option 10 is Retrieve Call Stack API, etc. You may look at the job APIs (List Job Information) in the manuals, but they may not give you the info you want. It all depends what you want to do with the retrieved data. Regards, Carel Teijgeler
Unconfigured Ad Widget
Collapse
Announcement
Collapse
No announcement yet.
wrkjob to out file?
Collapse
X
-
wrkjob to out file?
I recently needed info on files used by a certain group of active jobs...I used a the commands WRKACTJOB and CPYSPLF to a 128 byte print file, then read that file in CL looking for specific jobs (substring'ing field DATA128), retrieved &USER, &JOB, &NUMBER and did a series of DSPJOB's OUTPUT(*PRINT) on that data, CPYSPLF-adding each to a disk file...later (RPG) program(s) can read thru it for whatever purpose...runs in no time... sample code appended...hope it helps Harry Gross
Code
Comment