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

SARBCH program List Identifier


IBM Mainframe Forums -> CA Products
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
Arasi

New User


Joined: 15 Jul 2009
Posts: 6
Location: India

PostPosted: Wed Jan 12, 2011 3:03 am
Reply with quote

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

Global Moderator


Joined: 28 Aug 2007
Posts: 1689
Location: Tiruppur, India

PostPosted: Fri Jan 14, 2011 4:19 pm
Reply with quote

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 icon_sad.gif
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1689
Location: Tiruppur, India

PostPosted: Mon Feb 28, 2011 4:15 pm
Reply with quote

Hi,

I came across a solution for a problem which you posted a few months back. icon_smile.gif

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

Active User


Joined: 17 Mar 2008
Posts: 148
Location: Anna NGR

PostPosted: Mon Jun 20, 2011 12:07 pm
Reply with quote

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

Moderator Emeritus


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

PostPosted: Mon Jun 20, 2011 12:21 pm
Reply with quote

You know how it works :-) Show your command as well, please.
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Moderator


Joined: 14 Mar 2007
Posts: 10713
Location: italy

PostPosted: Mon Jun 20, 2011 12:34 pm
Reply with quote

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

Global Moderator


Joined: 28 Aug 2007
Posts: 1689
Location: Tiruppur, India

PostPosted: Tue Jun 21, 2011 11:08 am
Reply with quote

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

New User


Joined: 14 Aug 2020
Posts: 3
Location: India

PostPosted: Wed Aug 26, 2020 7:45 pm
Reply with quote

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

Global Moderator


Joined: 10 May 2007
Posts: 2448
Location: Hampshire, UK

PostPosted: Thu Aug 27, 2020 2:02 am
Reply with quote

Please do not resurrect old topics. Start a new one. Topic locked.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. Findrep - an identifier to mark the a... SYNCSORT 17
This topic is locked: you cannot edit posts or make replies. Copy list of files from PS to another... CLIST & REXX 11
This topic is locked: you cannot edit posts or make replies. Passing a field name to COBOL program COBOL Programming 10
This topic is locked: you cannot edit posts or make replies. Sample CICS Webservices Program CICS 1
No new posts Calling Rexx program from Cobol CLIST & REXX 12
Search our Forums:

Back to Top