FC Convert a File to another format

Notes:

The utility program PAMCONV will be invoked for executables and PLAM libraries when BLKCTRL=NO is specified.

The parameter RECSIZE=8 must always be given if an output file in RECFORM=U format is required. (Scratch pad register 8 is used by the program for the length of the output record).

If the name of the input file is left blank in the FC mask, then an output file with the specified format consisting of records containing the pad character will be created. The record length is determined by the Recsize value, or by the LEN option for Recform=V formats. The number of records to be written to the output file is specified in the Record-Limit field.

The FC command can also be used to convert SAM/ISAM files to PAM format, and vice versa. The following cases can be distinguished:

SAM/ISAM --> PAM

1) Input file: BLKSIZE = (STD,1)

The input file (SAM/ISAM) is read block-wise, and written as a PAM file. The data content is unchanged.

2) Input file: BLKSIZE > (STD,1)

It is assumed that the first 16 bytes of the input records of the SAM/ISAM file (Recform=V) contains the data for the PAM keys. Following that, 2048 bytes of data are expected for a full PAM block.

PAM --> SAM/ISAM

1) Output file: BLKSIZE = (STD,1)

The input file is transfered block-wise to the output file. The data content is unchanged. Only the FCBTYPE of the file is converted from PAM to SAM/ISAM.

2) Output file: BLKSIZE > (STD,1)

The PAM key is put into the first 16 bytes of each output record. The 2048 data bytes of the PAM block is appended to this.