operating system - MVS OS-390 - How do I Capture Job Information from CA-JOBTRAC programmatically -
i using rexx invoke jobtrac programmatically works unable pass jobname arguments using approach. can done using rexx?
the idea find history of job run using program jobtrac. use jobtrac's schedule find history of when job runs happened. invoke jobtrac using ‘tso jobtrac’ , supply history command ‘h xxxxxx’ in command line (xxxxx – jobname)
i thinking route jobtrac info flat file , parse can reporting real time during job run. above problem linked following scenario:
if give dslist 'dslist a.b.c.*'’ in ispf panel
it gives series of datasets ...
a.b.c.a, a.b.c.d a.b.c.e
when give
"save orange"
it stores list under
myuserid.orange.datasets.
i know can automated pro grammatically , have seen . don’t have code base right now. similar jobtrack issue have.
here rexx code understanding. know code wrong…we cannot use outtrap used console output.
say 'no. of month end jobs considered history :'jobnames.0 if jobnames.0 > 0 = 1 jobnames.0 jobnames.i jobname = word(jobnames.i,1); 'jobname under consideration ' jobname; tsocmd="jobtrac;addloc=000;h "|| strip(jobname); 'tso command ' tsocmd; y = outtrap(jobdetails.) address tso "'tsocmd'" ------------------> wrong…i believe have use ispexec 'job details ' jobdetails.6; end;
Comments
Post a Comment