I want to get the Current & Previous days joblog from SAR page into two separate files.
I have achieved this as below.
1). Get all the GEN from SAR into a flat file.
Code:
/LIST ID=JOBA GEN=*
2). Just get the first 2 GEN from the list produced above using below.
Code:
SORT FIELDS=COPY,STOPAFT=2
INCLUDE COND=(2,8,CH,EQ,C'JOBA')
RECORD TYPE=F
OUTREC FIELDS=(1:C'/PRINT ID=',11:2,8,19:C',',
20:C'GEN=',24:54,4,28:C',',29:C'DDNAME=OUTFILE',38X)
3). Using the SORTOUT from step2 run a SARBCH to get both the generations data into flat file from SAR>
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
Hello,
Suggest you generate a "sequence number" and append this to the genertion of the SAR Print statements. Instead of what is currently generated, generate these:
But your solution is simply superb!!! I brain was as clear as mud...
always thinks to introduce new steps rather than finding to apply in the same step....