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

To copy SAR information onto a dataset


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

New User


Joined: 19 Dec 2007
Posts: 7
Location: Chennai

PostPosted: Mon Dec 31, 2007 2:35 pm
Reply with quote

I want to copy the list of jobs present in SAR for a cycle date onto a dataset. I knew that using SARBCH utility we can fetch the details of a particular job, but can we do it for a list of jobs that run for a particular date. Also I dont need the expanded view of the jobs, just need the job details with their return codes.

Regards,
Ramnath
Back to top
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Wed Jan 02, 2008 12:18 pm
Reply with quote

I guess the PGM=SARBCH u can use for the requirement.

//STEP1 EXEC PGM=SARBCH
//SYSPRINT DD SYSOUT=*
//OUT1 DD DSN=YOUR.DATASET.TXT,DISP=(,CATLG,DELETE),
// UNIT=DISK,SPACE=(TRK,(300,50),RLSE),
// DCB=(RECFM=FBA,LRECL=153,BLKSIZE=27846)
//REPORT DD SYSOUT=*
//SYSIN DD *
/DBASE NAME=YOUR.SAR.DATABASE-NAME
/PRINT ID=SAR-REPORT.NAME,COPIES=1,DDNAME=OUTFILE


I haven't tried this...
Back to top
View user's profile Send private message
Ramnathdude

New User


Joined: 19 Dec 2007
Posts: 7
Location: Chennai

PostPosted: Wed Jan 02, 2008 2:17 pm
Reply with quote

Hi Prasanth,

Thanks for the reply.
In the jcl above PRINT ID takes only one jobname whose details would be obtained in an expanded format onto a dataset.

My requirement is where I need all the SAR job details for a particular date only with their jobid, return codes etc written onto a dataset.

Regards,
Ramnath
Back to top
View user's profile Send private message
scorp_rahul22
Currently Banned

New User


Joined: 06 Aug 2007
Posts: 42
Location: chennai

PostPosted: Fri Jan 04, 2008 1:55 pm
Reply with quote

these things can be modified while exporting from a table,
or while taking that input for SARBCH program
Back to top
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Wed Feb 06, 2008 10:31 am
Reply with quote

Quote:
My requirement is where I need all the SAR job details for a particular date only with their jobid, return codes etc written onto a dataset.


u can use this in the sysin to achieve ur requirement

/DBASE NAME=your.db.name
/LIST GEN=0 ID=jobname PASSWORD=
Back to top
View user's profile Send private message
RajkumarL

New User


Joined: 05 Oct 2006
Posts: 4

PostPosted: Sat May 03, 2008 3:20 am
Reply with quote

you should use one contol card for each job like this

/LIST GEN=* ID=jobname1
/LIST GEN=* ID=jobname2
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top