What is the difference between a Panvalet member's LEVEL and VERSION?

Document ID : KB000049719
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

Many are confused about the difference between the LEVEL number that displays on the Panlib Member Selection List (MSL) and the term LEVEL.

Solution:

The LEVEL number on the MSL reflects every change you make in any way. If you enter and edit a member, save and then repeat this process multiple times in one edit session, the LEVEL will be incremented each time. This can be reflected in the member in the right columns depending upon settings.

VERSIONs are stored copies of the member. You can MATCH-MERGE a delete file to get multiple VERSIONs. Note that the PVOPT parameter DELVERS determines how many VERSIONS you can create so it must be greater than 0. (Please see page 5-52 of System Management Guide)

Here is very basic example with insignificant columns removed:

 PVEDIT ---- TEST.PANLIB(ANEW)-----------------------------------------------  
 COMMAND ===>                                                
 ****** ***************************** Top of Data *************************** 
 000100 this is a new member                                                  
 000200 close and reopen in same edit session generates LEVEL change          
 000300 now I will do a BACKUP to a HISTORY file                              
 000400 this will save the first VERSION                                      
 ****** **************************** Bottom of Data ************************* 
                                                                              
 -------- PVEDIT MSL Option(D) - MEMBER SELECTION LIST     ANEW SAVED 
 COMMAND ====>                                               
 Enter Panvalet Function:                                                    
 | S or B -Browse, M -MSL Options & Dataset Info                              
 |                                                                            
 |  MEMBER    LIB LVL USER  F LANG STAT  
 V  ---------- -  --- ----- - ----- ---  
    ANEW       1    4     0 Y DATA  TAE       
                                        
                                      
 000100 this is a new member                                                  
 000200 close and reopen in same edit session generates LEVEL change          
 000300 now I will do a BACKUP to a HISTORY file                              
 000400 this will save the first VERSION                                      
 000500                                                                       
 000600 after the ++DUMP I make more changes                                  
 000700 then perform a MATCH MERGE combining this PANLIB and the HISTORY file 
 000800 this will create a VERSION 2                                          
 ****** **************************** Bottom of Data ************************* 
                                                                              
 -------- PVEDIT MSL Option(D) - MEMBER SELECTION LIST      ANEW SAVED 
 COMMAND ====>                                                    
 Enter Panvalet Function:                                                     
 | S or B -Browse, M -MSL Options & Dataset Info                              
 |                                                                            
 |  MEMBER    LIB LVL USER  F LANG STAT  
 V  ---------- -  --- ----- - ----- ---  
    ANEW       1    5     0 Y DATA  TAE 
      
                                                                              
 //STEP1       EXEC PGM=PAN#2                                                
 //PANDD1   DD DISP=SHR,DSN=TEST.PANLIB                                       
 //PANDD2   DD DISP=(NEW,CATLG),DSN=PANVALET.HISTFIL2,                        
 //            DCB=(RECFM=FB,LRECL=80,BLKSIZE=3120),                          
 //            UNIT=SYSDA,SPACE=(CYL,(1,1))                 OUTPUT            
 //PANDD3   DD DISP=SHR,DSN=PANVALET.HISTFILE               INPUT             
 //SYSPRINT DD SYSOUT=*                                                       
 //SYSPUNCH DD SYSOUT=*                                                       
 //SYSIN    DD *                                                              
 ++OPTION INPUT                                                               
 ++DELETE NAME=ANEW                                                           
 ++PRINT 1-UP,BACKUP                                                          
                                                                              
INPUT=PANVALET.HISTFILE                OUTPUT=PANVALET.HISTFIL2               
*FROM INPUT        *FROM LIBRARY        *TO OUTPUT                            
NAME LVL VERSN     NAME  LVL REASON      NAME  LVL VERSN  STATEMENTS          
                   ANEW    5 NAMED       ANEW    5     1           8          
ANEW   4     2                           ANEW    4     2           4          
                                                                              
 //STEP1       EXEC PGM=PAN#2                                                 
 //SYSPRINT    DD  SYSOUT=*                                                   
 //PANDD1      DD  DSN=TEST.PANLIB,DISP=SHR                                   
 //PANDD2      DD  DUMMY                                                      
 //PANDD3      DD  DSN=PANVALET.HISTFIL2,DISP=SHR                             
 //SYSIN       DD  *                                                          
 ++RESTORE  ANEW,,2
 /*
 //* THE VALUE 2 FOR VERSION TAKES YOU BACK ONE VERSION.
 //* NO ENTRY OR THE VALUE 1 WOULD INDICATE THE MOST CURRENT VERSION. 
 
                                                                             
-------- PVBROWSE MSL Option(D) - MEMBER SELECTION LIST 
 COMMAND ====>                                                   
 Enter Panvalet Function:                                                     
 | S or B -Browse, M -MSL Options & Dataset Info                              
 |                                                                            
 |  MEMBER    LIB LVL USER  F LANG STAT  
 V  ---------- -  --- ----- - ----- ---  
    ANEW       1    4     0 Y DATA  TAE