Sometimes it is necessary, after the NetMaster (or SOLVE) region is shut down, or at least after the file is unallocated using the UNALLOC command, to change the VSAM KSDS file characteristics, such as the file size (because it was full or due to increased file usage). To achieve it, the file must be backed up to a sequential file, reallocated, and finally restored to its new VSAM KSDS definition.
The IPREORG member in hlq.IPSAMP is the only distributed sample provided to reorganize IPLOG.
However, it can be readapted to any other VSAM KSDS file, including VFS.
The following DCB (DD2 DD) is for the sequential dataset based on this sample, and can be used to copy out (REPRO backup) any NetMaster (or SOLVE) region VSAM KSDS file to a sequential file:
//COPYOUT EXEC PGM=IDCAMS //SYSIN DD DUMMY //DD1 DD DSN=&IPLOGDSN,DISP=SHR //DD2 DD DSN=&BKUPDSN,DISP=(NEW,CATLG), // SPACE=(CYL,(&BKUPPRI,&BKUPSEC)), // DCB=(RECFM=U,BLKSIZE=32760), // VOL=SER=&BKUPVOL,UNIT=&BKUPUNIT
Please see the hlq.IPSAMP(IPREORG) member for full reorganization details.