MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RESTORE MEMBER IN PANVALET

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Tue Jan 09, 2007 10:07 am    Post subject: RESTORE MEMBER IN PANVALET Reply with quote

Hi All,
I searched for all the posts on Panvalet but couldnot get answer to writting u in personal message.

Actually i am new to Panvalet. So want to know how we can retrieve prior versions of Program.
I know one method of using through
Code:
++RESTORE yourpgm,,4

but i dont have jcl available.
Also in one the jcls i saw library with DD name //PANDD1 DD DSN=xxxx.xxxx.xxx,disp=shr (Is this should be source panvalet lib?)
I want to know if this should be the library where code resides?
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Tue Jan 09, 2007 11:33 am    Post subject: Reply with quote

Rajen,

This is the code that I use to perform the restore:
Code:

//RESTORE EXEC PGM=PAN#2,PARM='LINECNT=58'   
//SYSPRINT DD  SYSOUT=*                       
//SYSUDUMP DD  SYSOUT=*                       
//PANDD1   DD  DSN=MY.PANVALET.LIB,DISP=SHR     
//PANDD2   DD  DUMMY                         
//PANDD3   DD  DSN=MY.PANVALET.PROTECTION.FILE,DISP=OLD
//SYSIN DD *
++RESTORE MYPROG,,1
/*

PANDD1 is your code library, PANDD3 is your backup (protection) file. You cannot restore to PANDD1 if the member exists there so either rename the original or use the newname parameter.
Back to top
View user's profile Send private message
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Wed Jan 10, 2007 2:22 am    Post subject: Reply with quote

Hi Bithead,
I ran that JCL and got below mentioned error message.

Code:
PAN#2 PROTECTION FILE I/O MANAGEMENT REQUIRES A ** MINIMUM ** OF 02 BUFFERS OF 1
                                                                               
PAN#2 PROTECTION FILE I/O MANAGEMENT WILL USE 99 BUFFERS OF 18480 BYTES, UTILIZI
                                                                               
++RESTORE ABCD1234,,129                                                         
***** INVALID OR UNAVAILABLE FILE *****                        DSN = PANDD3     
DSN = PANDD3                   * ERROR MESSAGE  = PV051 *
PAN#2 PROTECTION FILE I/O MANAGEMENT STATISTICS: 00000000 RECORDS, 00000000 BLOC


One more thing what is PARM='LINECNT=58' signify here?
Why are we using //PANDD2 DD DUMMY?
Currently we have 131th version of member active in Panvalet (PANDD1) and i am trying to get 129th version.
I have no member called ABCD1234 in my SOURCE.COBOL library.

Below is my JCL.

//SCAN1 EXEC PGM=PAN#2,PARM='LINECNT=58'
//PANDD1 DD DSNAME=MY.PRODUCTION.PANLIB,DISP=SHR
//PANDD2 DD DUMMY
//PANDD3 DD DSN=MYID.SOURCE.COBOL,DISP=OLD
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
++RESTORE ABCD1234,,129
//*
//
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12366
Topics: 75
Location: San Jose

PostPosted: Wed Jan 10, 2007 10:19 am    Post subject: Reply with quote

rajen,

All your questions can be answered if you look up the Panavalet manuals. Since your shop already has a panavalet look around for a manual. Any way here is the explanation for your questions

LINECNT=nn is the PARM parameter where nn represents the maximum number of lines printed per page by CA-Panvalet programs. If you do not specify this option, LINECNT=56 is assumed in all CA-Panvalet programs unless altered at system generation time.


In the CA-Panvalet system, the CA-Panvalet library "back up" data sets are called protection files. A protection file is sequential and can reside on either tape or disk. It is not a CA-Panvalet library; however, the records are undefined format and in the same compressed format as stored on the library. Their contents are meaningful only to PAN#2, though you can use general utility programs for such purposes as copying tape-to- tape or data transmission.

You can use the protection files created by PAN#2 for security backup of the CA-Panvalet library, for a history backup of all deleted members, and for the transfer of members between libraries. You can selectively restore members from any of these files in the event of disaster or for error recovery.

The ddname PANDD2 identifies any of the three types of output protection files created by PAN#2. The ddname PANDD3 identifies any previously created protection file used as input to PAN#2.

As for the error pv051 here is the explanation

Code:

PV051 INVALID OR UNAVAILABLE FILE    DSN=xxxxxxxx                         

                                                                         

Reason:       OPEN was unsuccessful (OS/390, VSE) or, ENQ/RESERVE for a   

              PDS failed (OS/390) or, a member name was specified in the 

              OPTION command for a sequential file (OS/390).             

                                                                         

              Note:  If using the CA-Panvalet TSO Option, the LRECL on the

              input member does not match the LRECL of the member.  See   

              message PV123.                                             

                                                                         

Action:       Check the JCL.  Perform one or all of the following:       

                                                                         

              ;  Provide missing DD or DLBL card                         

                                                                         

              ;  Do not attempt access to the PDS when other jobs are     

                 concurrently accessing                                   

                                                                         

              ;  Remove the member name from the OPTION command in the   

                 sequential file.                                         

                                                                         

Reason:       The file named is either an input or output CA-Panvalet     

              protection file and is invalid for one of the following     

              reasons:                                                   

                                                                         

              ;  An error occurred during OPEN, CLOSE, or EOV processing.

                                                                         

              ;  An ++OPTION OUTPUT command was omitted when trying to   

                 ++TRANSFER a member from a CA-Panvalet library.  (That   

                 is, omitting protection file processing.)               

                                                                         

              ;  The file was assigned to an invalid device type.         

                                                                         

              ;  An input file is not a valid CA-Panvalet protection file.

                                                                         

              ;  A tape input file was read with the wrong density.       

                                                                         

              ;  An OS/390 protection file is unlabeled or was created by

                 VSE, and JCL did not specify BLKSIZE=, and RECFM=U.     

                                                                         

              ;  An output protection file does not have DISP=NEW in JCL 

                 (OS/390).                                               

                                                                         

              ;  An OS/390 protection file is labeled and is not RECFM=U,

                 or JCL specified some value other than RECFM=U.         

                                                                         

              ;  The protection file being read is of a greater version   

                 than the software reading it.  For example, Version 11.0

                 software is trying to read a Version 12.0 protection     

                 file.                                                   

                                                                         

Action:       Determine the specific error, correct it, and rerun the     

              program.                                                   

                                                                         


Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Thu Jan 11, 2007 1:40 am    Post subject: Reply with quote

Hi Kolusu,
Thanks a lot for information.
Yes we do have Panvalet in our SHOP but i couldnot find Manual for that.
I also tried to Search on CA-Support site but result the same.

Here i dont know the Protection Dataset Name for Panvalet. Is there anyway to search the dataset or do we need to get that dataset name from Administrator?

One more thing if you have softcopy of Panvalet Manual then can you please put it here or if possible give me link for that.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group