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

Downloading the job output from SAR into a dataset


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

New User


Joined: 11 Apr 2006
Posts: 8
Location: Pune

PostPosted: Tue Apr 11, 2006 10:18 am
Reply with quote

How to download the output of a single/multiple jobs together into a dataset? XDC allows to download from SDSF is there anything which allows the same to be done from SAR ?
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Tue Apr 11, 2006 7:09 pm
Reply with quote

Deepti Bhopatkar,


Try this

Code:

//USERIDXX JOB (ACNT,ROOM),PROGRAMMER,                                 
//         MSGCLASS=Y,NOTIFY=USERID                                     
//**********************************************************************
//*  THIS JOB WILL WRITE OUTPUT FROM SAR TO A SEQUENTIAL DATASET.       
//**********************************************************************
//*                                                                     
//*  THE FOLLOWING JCL MODES ARE CONTROLLED BY THE USER                 
//*                                                                     
//*  1) PARM=FB.XXX              SPECIFIES ON WHICH VERSION OF SAR     
//*                              YOUR SYSOUT RESIDES:                   
//*                                                                     
//*                              THIS CAN BE GOTTEN FROM THE SAR       
//*                              PANNEL.                               
//*                              'PRIMARY SELECTION FOR "FB.CSD"'       
//*                                                                     
//*  2) DSN=YOUR.DATASET.NAME    THIS IS THE NAME OF THE SEQUENTIAL     
//*                              DATASET YOU WISH USE.                 
//*                                                                     
//*  THE FOLLOWING SYSIN STATEMENTS ARE CONTROLLED BY THE USER         
//*                                                                     
//*  /PRINT ID=XXXXXXXXXXXXXXX   SPECIFIES THE SYSOUTID OF THE GROUP   
//*                              TO BE WRITTEN.  THIS PARAMETER IS     
//*                              REQUIRED.                             
//*                                                                     
//*         COPIES=NNNN          SPECIFIES THE NUMBER OF COPIES DESIRED.
//*                              MAY BE FROM 1 TO 255                   
//*                                                                     
//*         DDNAME=XXXXXXXX      SPECIFIES THE WRITING OF A SYSOUT     
//*                              GROUP TO THE DD STATEMENT GIVEN AS     
//*                              'XXXXXXXX'                             
//*                                                                     
//********  GEN=NNN              SPECIFIES THE ABSOLUTE OR RELATIVE     
//*                              GENERATION FOR WHICH SYSOUT IS TO BE   
//*                              WRITTEN.  IF OMITTED, THE MOST RECENTLY
//*                              ARCHIVED SYSOUT GROUP FOR THE ID WILL 
//*                              BE WRITTEN.                           
//*         RELATIVE GENERATIONS:                                       
//*         -2 WOULD MEAN APPROXIMATELY TWO DAYS AGO                   
//*         -5 WOULD MEAN APPROXIMATELY FIVE DAYS AGO                   
//*         IT CORRESPONDS TO WHEN THE SAR ARCHIVE JOBS RUN             
//*         YOU CAN VERIFY THIS BY TRYING TO ACCESS THE JOB YOU WANT   
//*         USING THE RELATIVE GENERATION ON THE PANEL                 
//*                                                                     
//********  SEQ=NNN              SPECIFIES THE RELATIVE SYSOUT FOR THE 
//*                              GENERATION GIVEN                       
//*                                                                     
//*         PAGE=(NN NN NN)      SPECIFIES 1 TO 9 PAGE NUMBERS OR RANGES
//*                              TO BE WRITTEN.  IF OMITTED THE ENTIRE 
//*                              SYSOUT GROUP WILL BE WRITTEN.         
//*                                                                     
//*         VIEW=N               SPECIFIES A VIEW FORMAT IN WHICH THE   
//*                              REPORT WILL BE WRITTEN. WHERE N= 1 - 9
//*                                                                     
//**********************************************************************
//STEP1    EXEC PGM=SARBCH,PARM='FB.XXX'                               
//REPORT   DD  DSN=YOUR.SAR.OUTPUT,                                     
//             DISP=(MOD,CATLG,DELETE),                                 
//             SPACE=(CYL,(10,10),RLSE),                               
//             DCB=(RECFM=FBA,LRECL=133,BLKSIZE=13300,DSORG=PS)         
//SYSPRINT DD  SYSOUT=*                                                 
//*  *****                                                             
//*  YOU DO NOT NEED THE GEN AND SEQ #'S IF YOU WANT THE MOST RECENT   
//*  VERSION OF THE SYSOUT FROM SAR.  IF YOU NEED THEM, GET THEM       
//*  ON THE SAR SYSOUT SELECTION LIST. GET THE SEQUENCE NUMBER BY       
//*  SCROLLING TO THE RIGHT ON THE SAR SYSOUT SELECTION LIST !!!       
//*  *****                                                             
//SYSIN    DD  *                                                       
/PRINT ID=JOBABCDE,DDNAME=REPORT                                       
//* ***************                                                     
//*  EXAMPLES:                                                         
//* ***************                                                     
//SYSIN1    DD *                                                       
/PRINT ID=XXXTRACE                         
       COPIES=1                             
       VIEW=0                               
       VIEW=0                               
       PAGE=41161:41275                     
       DDNAME=REPORT                       
/PRINT ID=XYZJOB                           
       COPIES=1                             
       VIEW=0                               
       DDNAME=REPORT                       
       GEN=1854                             
       SEQ=-2     


Dave
Back to top
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Sat Jul 29, 2006 11:59 am
Reply with quote

only this much is required icon_smile.gif

//STEP1 EXEC PGM=SARBCH
//*
//* MODIFY OR REMOVE STEPLIB AS NECESSARY
//*
//REPORT DD DSN=BKTEST.W.CTS.SAR.REPORT(0),
// DISP=(MOD,CATLG,DELETE),DATACLAS=TST365P5,
// DCB=(RECFM=FBA,LRECL=121,BLKSIZE=0)
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
/DBASE NAME=VW.W.J.VWDBASE
/LIST GEN=0 ID=give job id PASSWORD=
/*
//*
Back to top
View user's profile Send private message
Rijit

Active User


Joined: 15 Apr 2010
Posts: 168
Location: Pune

PostPosted: Wed Feb 08, 2012 8:57 pm
Reply with quote

Hi,

I have came across such a JCL in web
Code:

//STEP1     EXEC PGM=SARBCH
//SYSPRINT  DD SYSOUT=*
//LISTOUT1  DD DSN=userid.SARC,
//             DISP=(,CATLG,DELETE),
//             DCB=(LRECL=151,BLKSIZE=0,RECFM=FBA)
//SYSIN     DD *
/DBASE NAME=sardatabasename
/PRINT ID=jobname GEN=4352    DDNAME=LISTOUT1  SEQ=2286
/*


But not able to figure out what is the this

Code:

/DBASE NAME=sardatabasename


which is used in all the JCls above. Any idea how we can get this DBASE NAME from the SAR?

Thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Feb 08, 2012 9:15 pm
Reply with quote

not a record but ...

The topic has been resurrected after
Code:
...          5 year(s) - (months difference / 12 )
...          6 year(s) - (difference )
...         67 months
...       2020 days
...      48488 hours
...    2909338 minutes
...  174560280 seconds


IIRC the record is
Code:
...          6 year(s) - (months difference / 12 )
...          7 year(s) - (difference )
...         80 months
...       2452 days
...      58854 hours
...    3531245 minutes
...  211874700 seconds


why not look at the SAR manuals Yourself
for the meaning of the /DBASE parameter

A wild guess would be that the /DBASE parameter refers to the <thing> where SAR stores its objects
so since we do not belong to the unknown organization from which the snippet was taken, we just cannot tell

good manners also dictates that when You have a question You should start a new topic
and not piggyback on an inactive one
Back to top
View user's profile Send private message
Rijit

Active User


Joined: 15 Apr 2010
Posts: 168
Location: Pune

PostPosted: Thu Feb 09, 2012 12:56 am
Reply with quote

enrico-sorichetti wrote:
not a record but ...

The topic has been resurrected after
Code:
...          5 year(s) - (months difference / 12 )
...          6 year(s) - (difference )
...         67 months
...       2020 days
...      48488 hours
...    2909338 minutes
...  174560280 seconds


IIRC the record is
Code:
...          6 year(s) - (months difference / 12 )
...          7 year(s) - (difference )
...         80 months
...       2452 days
...      58854 hours
...    3531245 minutes
...  211874700 seconds


why not look at the SAR manuals Yourself
for the meaning of the /DBASE parameter

A wild guess would be that the /DBASE parameter refers to the <thing> where SAR stores its objects
so since we do not belong to the unknown organization from which the snippet was taken, we just cannot tell

good manners also dictates that when You have a question You should start a new topic
and not piggyback on an inactive one



Hi, But u seem to be so angry icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Feb 09, 2012 1:14 am
Reply with quote

angry... why should I be ?
You have never seen me angry icon_biggrin.gif
the worst bashings and harsh comments seen around here are nothing compared to other forums I participate to

the main issue here is that everybody takes things too personally,

what I keep repeating is that I do not bash the person,
( as far as I know he/she might be a loving husband/wife and a caring father/mother )
but the poor attitude shown icon_cool.gif
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Feb 09, 2012 11:00 am
Reply with quote

In our shop its displayed at the very first screen's first line when you enter SAR, I think it maybe a CA standard, just look for it, you might be lucky.
Code:

CA View ALL -- Primary Selection for SAR.DATABASE.NAME -----------------------------
Command ===>                                                                   
                                                                               
Sysout ID     ===> wells*                                                     
Select By     ===> R                     (R, I, IL, or IR)                     
Index Name    ===>               Value ===>                                   
              ===>                     ===>                                   
              ===>                     ===>                                   
              ===>                     ===>                                   
             
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
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 Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top