IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

XCODE in SARBCH


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sen_1983us

New User


Joined: 21 May 2005
Posts: 21
Location: Hyderabad

PostPosted: Thu Jul 14, 2011 6:08 am
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7311
Location: Inside the Matrix

PostPosted: Thu Jul 14, 2011 6:29 am
Reply with quote

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
View user's profile Send private message
sen_1983us

New User


Joined: 21 May 2005
Posts: 21
Location: Hyderabad

PostPosted: Thu Jul 14, 2011 7:04 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19245
Location: Inside the Matrix

PostPosted: Thu Jul 14, 2011 9:34 am
Reply with quote

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. . . icon_sad.gif

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
View user's profile Send private message
bhavin.mehta

New User


Joined: 25 Jun 2012
Posts: 34
Location: India

PostPosted: Thu May 12, 2016 7:41 pm
Reply with quote

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 icon_smile.gif

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts SARBCH REPORT DD writing error CA Products 1
No new posts SARBCH PRINTJOB option not Works with... CA Products 4
No new posts Copying part of the report using SARBCH CA Products 1
No new posts JCL error while executing PGM=SARBCH CA Products 7
No new posts Add a line while concatenating using ... CA Products 8
Search our Forums:

Back to Top