View previous topic :: View next topic
|
Author |
Message |
sen_1983us
New User
Joined: 21 May 2005 Posts: 21 Location: Hyderabad
|
|
|
|
I want to capture the Xcode for a particular job from SAR on a particular date (CA-View) to a PS. I looked at older posts and tried SARBCH but it doesn't get the Xcode information.
CA-View ALL --------------- Sysout Selection List -----------------------------
Command ===> Scroll ===> CSR
Sel Sysout ID Jobname Jobid Arch Date Time Loc Lines Pages Xcode
==> * * * * * * * * *
XXXXXXXX XXXXXXXX JOB42497 10/25/2010 06:18 PERM 363344 5169 U0140
Is there any other way to get the Xcode information? Please help |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
sen_1983us wrote: |
I want to capture the Xcode for a particular job from SAR on a particular date (CA-View) to a PS. I looked at older posts and tried SARBCH but it doesn't get the Xcode information.
Code: |
CA-View ALL --------------- Sysout Selection List -----------------------------
Command ===> Scroll ===> CSR
Sel Sysout ID Jobname Jobid Arch Date Time Loc Lines Pages Xcode
==> * * * * * * * * *
XXXXXXXX XXXXXXXX JOB42497 10/25/2010 06:18 PERM 363344 5169 U0140 |
Is there any other way to get the Xcode information? Please help |
Isn't it there, last field, U0140?
If all you want is "a particular job from SAR on a particular date [...] to a PS" why don't you display it like above, and copy/paste it? |
|
Back to top |
|
|
sen_1983us
New User
Joined: 21 May 2005 Posts: 21 Location: Hyderabad
|
|
|
|
See i have SAR as below
Code: |
CA-View ALL --------------- Sysout Selection List ----------------------------
Command ===> Scroll ===> PAGE
Sel Sysout ID Jobname Jobid Arch Date Time Loc Lines Pages Xcode
==> RDFD101D * * * * * * * *
RDFD101D RDFD101D JOB29008 07/13/2011 01:24 PERM 126 4
RDFD101D RDFD101D JOB17623 07/12/2011 01:14 PERM 126 4
RDFD101D RDFD101D JOB02761 07/09/2011 01:55 PERM 126 4
RDFD101D RDFD101D JOB23573 07/08/2011 02:49 PERM 126 4
RDFD101D RDFD101D JOB10807 07/07/2011 00:57 PERM 126 4 |
In this i have to extract on date 07/13/2011 only if XCODE is sapces then the first row need to written in to PS |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You need to re-post using copy/paste and the Code tag directly from your 3270 screen rather than the mess that has been posted. . .
Use the Preview to see your post as it will appear to the forum and then Submit when you like the way the post appears. |
|
Back to top |
|
|
bhavin.mehta
New User
Joined: 25 Jun 2012 Posts: 34 Location: India
|
|
|
|
Sorry for activating the old post. I'm posting the solution as I could find one, may be someone like me will get the answer if he reaches here
Sol 1: The below code will give all the Jobs for that particular Day.
Code: |
//STEP020 EXEC PGM=ADLIST,PARM='SAR.DB.NAME'
//CTLCARD DD DISP=SHR,DSN=USER.PDS(MEMBER) <- CAN BE OMITED
//SYSPRINT DD SYSOUT=*
//DDNAME DD SYSOUT=*
//SYSIN DD *
/LIST ARCHDATE=[mm/dd/yy[-mm/dd/yy]|*|TODAY]
REPORTID=JOB*
ORIG=SAR
/*
|
Sol 2:The below one would give All jobs
Code: |
//STEP010 EXEC PGM=SARBCH,PARM='SAR.DB.NAME'
//CTLCARD DD DISP=SHR,DSN=USER.PDS(MEMBER) <- CAN BE OMITED
//SYSPRINT DD SYSOUT=*
//REPORT DD DISP=MOD,DSN=USER.REPORT <- OUTPUT FILE
//DDNAME DD SYSOUT=*
//SYSIN DD *
/LIST EXCP=A ID=JOBNAME* GEN=*
/*
|
EXCP has valid values as A, Y & N |
|
Back to top |
|
|
|