Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SARBCH program List Identifier

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: SARBCH program List Identifier
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: 1522
Location: Chennai

PostPosted: Fri Jan 14, 2011 4:19 pm    Post subject:
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: 1522
Location: Chennai

PostPosted: Mon Feb 28, 2011 4:15 pm    Post subject:
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Mon Jun 20, 2011 12:21 pm    Post subject: Reply to: SARBCH program List Identifier
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Mon Jun 20, 2011 12:34 pm    Post subject: Reply to: SARBCH program List Identifier
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: 1522
Location: Chennai

PostPosted: Tue Jun 21, 2011 11:08 am    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us