View previous topic :: View next topic
|
Author |
Message |
M Lee Klein
New User
Joined: 08 Feb 2022 Posts: 39 Location: USA
|
|
|
|
How do you get the most recent job out of Sar without knowing the Gen and Seq number?
I know I can do /LIST ID=Jobname Gen=* but I only want the first one.
Also, can I list multiple jobs in one SYSIN or do I have to have one step per LIST?
//SYSIN DD *
/LIST ID=Jobname1 GEN=*
/LIST ID=Jobname2 GEN=*
// |
|
Back to top |
|
|
M Lee Klein
New User
Joined: 08 Feb 2022 Posts: 39 Location: USA
|
|
|
|
I found one answer - this will list only the most recent:
/LIST ID=JOBNAME and leave off other commands. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
Can you please post the complete JCL with code tags ?
This will help others in need for future thanks |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
Quote: |
can I list multiple jobs in one SYSIN or do I have to have one step per LIST? |
Yes you can list multiple jobs in one SYSIN, you need to have DISP=MOD for the output dataset in order to capture the output of all LIST statements.
Else the last LIST statement output will replace the previous LIST statement outputs. |
|
Back to top |
|
|
|