Another function of PAMCONV is reblocking NK-PAM-DATA files without changing the file format, i.e. both the source and the target file have the attribute BLKCTRL=DATA. Reblocking without conversion is supported by the specification DIRECTION=*TO-NONKEY and by the TO-FILE-BLKSIZE operand.
The blocking factor of a PAM-DATA file is increased only if the block size of the target file (TO-FILE-BLKSIZE) can be divided by the block size of the source file without leaving a remainder. Modulo(target-BLKSIZE / source-BLKSIZE)=0
If the remainder is not zero, reblocking is aborted with an error message.
When increasing the blocking factor of PAM-DATA files, only the block control field of the first block in each logical block is written to the target file. All other control fields in the same logical block are filled to 12 bytes with X'00'.
The blocking factor of PAM-DATA files is decreased only if the block size of the source file can be divided by the block size of the target file without leaving a remainder.
Modulo(source-BLKSIZE / target-BLKSIZE)=0
If the remainder is not zero, reblocking is aborted with an error message.
When the blocking factor is decreased, a check is made as to whether the control fields contain X'00'. If not, reblocking is aborted with an error message.
The blocking factor is decreased only if the blocking factor of the file has already been increased.
If the source PAM-DATA file has the block size BLKSIZE=(STD,1), PAMCONV performs implicit reblocking. Since this changes the file structure, a warning is issued.
Restrictions
PAMCONV cannot convert NK2-PAM-DATA files with a BLKSIZE greater than (STD,8).
The “reblocking” function for PAM-DATA files is executed for the TO-NONKEY conversion direction only. If NONKEY-TO-KEY is specified, conversion is aborted with message
PEA2212
, because PAM-DATA files cannot be converted to KEY.