![]() |
FC Convert a File to another format
FC [file1, file2] [, ?] [, reclim] [, const] [, opt] [, LEN=length]
The input file (file1) is converted to a second file, (file2), in any format.
file1 Name of the input file, or a comma if the output record should consist of a specified pad character.
file2 Name of the output file.
The output file's attributes can be set in the FC mask (see below), or predefined with a /FILE command with LINK=OUTFCB.
Entering the command FC without any parameters, or entering the file names followed by a question mark (FC [file1], file2, ?), will display the FC mask.
The FILE command to determine the output file's attributes can, for example, look as follows: /FILE file2,LINK=OUTFCB,FCBTYPE=ISAM,RECFORM=F,RECSIZE=4000 ,KEYPOS=20, KEYLEN=12, BLKSIZE=(STD,2),SPACE=(30,30).
Instead of the name of an output file, OUTFCB can also be given in the FC command. In this case the file name is determined from the OUTFCB link name.
? A question mark can be entered after the name of the output file, which will cause the FC mask to be displayed. The file attributes, as well as all the following parameters, can be entered.