View previous topic :: View next topic
|
Author |
Message |
Deepti Bhopatkar
New User
Joined: 11 Apr 2006 Posts: 8 Location: Pune
|
|
|
|
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 |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
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 |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
only this much is required
//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 |
|
|
Rijit
Active User
Joined: 15 Apr 2010 Posts: 168 Location: Pune
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
Rijit
Active User
Joined: 15 Apr 2010 Posts: 168 Location: Pune
|
|
|
|
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 |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
angry... why should I be ?
You have never seen me angry
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 |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
|