View previous topic :: View next topic
|
Author |
Message |
Arasi
New User
Joined: 15 Jul 2009 Posts: 6 Location: India
|
|
|
|
Hi,
I want to download reports from SAR using the SARBCH program based on date (which is usually done by gen and seq numbers).
I use the below Job to list the archived report and write the data to a dataset.
Code: |
//JOBID JOB (XXXXX),
// CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//STEP01 EXEC PGM=SARBCH,PARM='ITSX00P.PB.VIEWV2'
//REPORT DD DSN=XXXX.XX.XXX.XXXX,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(100,100),RLSE),UNIT=DISK,
// DCB=(RECFM=FBA,LRECL=133,BLKSIZE=32585)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
/LIST ID=YYYYY GEN=* |
But I want to get the archive list based on the Archive date and time, is it possible to list all reports based on the date and time when they are archived? |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
Hi,
I think it is not possible to get the details of archived date using SARBCH utility. I too have searched for it, sometime in the past but unable to do it |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
Hi,
I came across a solution for a problem which you posted a few months back.
Its possible to get the Archived date using the below SYSIN card along with GEN.
Code: |
/LIST ID=JOBNAME* EXCP=A GEN=-0 |
Output of the job,
Code: |
CA View Output Archival and Viewing (11.5)
Batch Processing Utility - Sysout Archival Listing
Jobname Jobid Gen Seq Arc Date Arc Time Loc Lines Pages Block
-------- -------- ----- ----- ---------- -------- ---- --------- -------- -----
ABCDEFGH JOB08590 2126 1 02/28/2011 01:29:22 DISK 3293 49 5
ABCDEFGH JOB08468 2126 1 02/28/2011 00:47:07 DISK 10462 145 14
ABCDEFGH JOB08594 2126 1 02/28/2011 01:15:14 DISK 669 12 1
ABCDEFGH JOB08457 2126 1 02/28/2011 00:07:34 DISK 3081 48 4
ABCDEFGH JOB08622 2126 1 02/28/2011 01:33:24 DISK 1742 24 2
ABCDEFGH JOB08446 2126 1 02/28/2011 00:04:52 DISK 2442 41 2 |
You could use GEN to extract the list of jobs and then sort them according to archived date.
Hope it helps. |
|
Back to top |
|
|
kratos86
Active User
Joined: 17 Mar 2008 Posts: 148 Location: Anna NGR
|
|
|
|
Hi,
Sorry to reply in a erstwhile message.
Does anybody know how to add archival date as a filter in the list command. I tried providing ARCHDATE as a paramater, but getting an error
Code: |
SARBCH10 Invalid keyword name "ARCHDATE" |
Can anyone please assist me what is the correct syntax. I tried searching forums but no help. May be i am not providing the exact search criteria to find a help in web. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
You know how it works :-) Show your command as well, please. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
Can anyone please assist me what is the correct syntax. I tried searching forums but no help. |
why not search the manuals yourself instead? much more effective.
and ... forums are not a manual reading, resuming service ! |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
Hello,
ATDTE is the keyword for Archival date & time, but you cannot use /LIST or /LOAD or /PRINT with ATDTE.
I guess you would have to extract based on GEN and filter the required from unwanted.
Good day.. |
|
Back to top |
|
|
vivky_vivek
New User
Joined: 14 Aug 2020 Posts: 3 Location: India
|
|
|
|
Hi,
Is there any process to limit the range.
In my case I don't need all the entries in SAR. I want only last 2 or last 5. Is there any possibility to achieve this using SARBCH. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Please do not resurrect old topics. Start a new one. Topic locked. |
|
Back to top |
|
|
|