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

REXX to Find a string in the executed jobs from $AVRS


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Mar 23, 2010 5:44 pm
Reply with quote

SAVRS documentation is copyrighted and therefore legally is only available from the vendor.
Back to top
View user's profile Send private message
Devmishra

New User


Joined: 14 Jan 2010
Posts: 14
Location: India

PostPosted: Tue Mar 23, 2010 5:48 pm
Reply with quote

Its not fine with me at all.

How to Scan a string thru Archived history? or its not possible.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 23, 2010 5:55 pm
Reply with quote

Who knows without access to the manuals ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Mar 23, 2010 6:02 pm
Reply with quote

Contact your senior team members and have them provide you with the JCL to execute $AVRTAPE. This job, also in the installation library PDS, is designed for extracting data from Archive History records using the $AVRS backup file -- NOT the KSDS or RRDS database. $AVRTAPE does take the FA (or SCAN) parameter.
Back to top
View user's profile Send private message
Devmishra

New User


Joined: 14 Jan 2010
Posts: 14
Location: India

PostPosted: Fri Mar 26, 2010 5:02 pm
Reply with quote

Hi Robert,

Finally i got the manual of $avrs.

i tried to execute $AVRTAPE but still somewhere i am missing something. Please help.

I used the belao code
Code:

//STEP1 EXEC PGM=$AVRTAPE,REGION=786K,PARM=WTOR
//STEPLIB  DD  DISP=SHR,DSN=XXXXXXXX.YYY.$AVRS.LOADLIB     
//$AVRTAPE DD DSN=XXXXXXXX.$AVRS.XXXX.BACKUP(+0),DISP=SHR 
//*                                                         
//RSLOCAL  DD SYSOUT=*                                     
//*                                                         
//SYSDUMP  DD SYSOUT=*                                     
//SYSPRINT DD SYSOUT=*                                     
//SYSIN    DD  *                                           
 ONE=YES                                                   
 TYPE=AH,SD=-30,ED=*,FA='KL0K081*'                         
/*       

when i submit this job, the jobs keeps running a long time.

but when i remove that parm and execute then job gets abended with RC=8 and the msg is

Code:

ONE=YES - UNKNOWN PULL SELECTION CRITERIA
TYPE=AH,SD=-30,ED=*,FA='KL0K081*' - UNKNOWN PULL SELECTION CRITERIA
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Mar 26, 2010 5:09 pm
Reply with quote

Depending upon how the backups were set up for SAVRS, an archive scan can run for a VERY long time. You may need to work with your site support group to put the job in a long running batch class.

I do not understand what this means -- you must have a parameter to execute, and from the output it looks like you're executing $AVRPULL (although I haven't done enough with $AVRTAPE to know if the same messages are generated):
Quote:
but when i remove that parm and execute then job gets abended with RC=8 and the msg is
Back to top
View user's profile Send private message
Devmishra

New User


Joined: 14 Jan 2010
Posts: 14
Location: India

PostPosted: Fri Mar 26, 2010 6:32 pm
Reply with quote

yes, the same msgs are from $AVRTAPE.

I will test this $AVRTAPE on diff class to run longer.
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 -> All Other Mainframe Topics Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
Search our Forums:

Back to Top