View previous topic :: View next topic
|
Author |
Message |
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Pay no attention to that man behind the curtain. . . |
|
Back to top |
|
|
Devmishra
New User
Joined: 14 Jan 2010 Posts: 14 Location: India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Devmishra
New User
Joined: 14 Jan 2010 Posts: 14 Location: India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
SAVRS documentation is copyrighted and therefore legally is only available from the vendor. |
|
Back to top |
|
|
Devmishra
New User
Joined: 14 Jan 2010 Posts: 14 Location: India
|
|
|
|
Its not fine with me at all.
How to Scan a string thru Archived history? or its not possible. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Who knows without access to the manuals ? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Devmishra
New User
Joined: 14 Jan 2010 Posts: 14 Location: India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Devmishra
New User
Joined: 14 Jan 2010 Posts: 14 Location: India
|
|
|
|
yes, the same msgs are from $AVRTAPE.
I will test this $AVRTAPE on diff class to run longer. |
|
Back to top |
|
|
|