The lsjes -so -t command outputs 6 or 7 fields (why does "(JCL error)" have a tab between JCL and error?). I could use 2 more fields sometimes. The reader start date and time. Actually, it would be nice to have all the date/time fields: the reader date & time; start date & time; end date&time. Why you ask? Because I'm working on something like this:
Code: Select all
lsjes -so -t|\
while read i;do
set $i
jobid=$1
jobname=$2
output=output/${jobname}.${jobid}.sysout
test -e ${output} && continue
fromdsn -jes.${jobid} >${output}
done
I think it would be helpful to have the execution start date & time in the file name as well. But I can't get it from lsjes. This is my own weird version of a job output archive facility. Actually, I already have such a thing, written in REXX using the SDSF REXX API. But the more the merrier, I always say.