lsjes question / enhancement

General discussion of the Co:Z Toolkit
Post Reply
JohnMcKown
Posts: 39
Joined: Sat Nov 21, 2009 2:59 pm

lsjes question / enhancement

Post by JohnMcKown »

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.
JohnMcKown
Posts: 39
Joined: Sat Nov 21, 2009 2:59 pm

Re: lsjes question / enhancement

Post by JohnMcKown »

My mistake. There is no tab in the "(JCL error)". I forgot that the "set" function splits on $IFS which normally includes a space. I can "fix" that.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: lsjes question / enhancement

Post by dovetail »

John,

Thanks for the suggestion. We'll consider adding new fields as a feature request.
Post Reply