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
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Fri Mar 19, 2010 6:53 pm
Reply with quote

I like the line:

Quote:

All know that Rexx is a very powerful language and i think Rexx can help to achieve this.


This reminds me of "you are the great and powerful OZ. Certainly you can get me back to Kanasas".
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Mar 19, 2010 7:57 pm
Reply with quote

Pay no attention to that man behind the curtain. . . icon_cool.gif
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:15 pm
Reply with quote

Hello,

Sorry to say that my senior team members said a big NO about the $AVRS manual.
I executed the $AVRPULL using parm
Code:

//SYSIN    DD  *                                         
TYPE=JN,SD=2010001,ED=2010226,FA='KLM014BC',NAME=G1KL**PM

as a result it gave only those job names which had been restored using R(restore) thru $avrs.
in sysprint
Code:

$AVR719I - REQUEST SELECTED  G1KLS6PM (J0017853)
$AVR719I - REQUEST SELECTED  G1KLS6PM (J0017853)
$AVR719I - REQUEST SELECTED  G1KLS6PM (J0026814)
$AVR719I - REQUEST SELECTED  G1KLS6PM (J0026814)
$AVR719I - REQUEST SELECTED  G1KLS6PM (J0011711)
$AVR719I - REQUEST SELECTED  G1KLS6PM (J0011711)

In $avrs, here T means the job is Restored.
Code:

ACT  JOBNAME    JOB # C ACK    CCODE       START DATE
T G1KLS6PM 0011711 J        RC=0000 TUE 02 MAR
T G1KLS6PM 0011711 J        RC=0000 TUE 02 MAR
T G1KLS6PM 0026814 J        RC=0000 TUE 02 FEB
T G1KLS6PM 0026814 J        RC=0000 TUE 02 FEB
T G1KLS6PM 0017853 J        RC=0000 TUE 05 JAN
T G1KLS6PM 0017853 J        RC=0000 TUE 05 JAN

when i used TYPE=AH, its not giving any job name and job ended up with RC=4.
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 5:28 pm
Reply with quote

From the manual:
Quote:
FA= or
SCAN= Defines an argument to be found or scanned for in the work. In
SYSLOG, each line continuing the argument is printed including any
multi-line or continued messages requested. For all other types of work,
if the argument is found, the entire work is printed. If the DDNAME=
selection parameter was also used for this scan, only the file is printed
instead of the entire work. This is a 30 byte field. If the argument
contains blanks, the argument must be enclosed in parentheses, single or
double quotes. This parameter is mutually exclusive with LO=. This
parameter is mutually exclusive with LUNAME for TYPE=SL.
Valid for Types: JN, TN, SN, SL
Shortest Abbreviation: FA or SC
Example: FA=TEXT
FA is not valid for Archive History records.
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:42 pm
Reply with quote

Thanks a lot Robert.

Can't we Scan a string thru Archived history?

Well, is not there any way to get $avrs manual other than the vendor?
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 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 1, 2  Next

 


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