ILE C/C++ Programmer's Guide
Dynamic file creation for text stream files is the same as
specifying:
CRTSRCPF FILE(filename) RCDLEN(recln)
Dynamic file creation for binary stream files is the same as
specifying:
CRTPF FILE(filename) RCDLEN(recln)
The length that is specified on the lrecl parameter of
fopen() is used for the record length of the file that
is created, with the following exceptions:
- If you do not specify a record length when you open a text file, then a
source physical file with a record length of 266 is created.
- If you do not specify a record length when you open a binary or record
file, then a physical file with a record length of 80 is created.
- If you specify a record length of zero (lrecl=0) when you open
a text file, then a source physical file with a record length of 266 is
created.
- If you specify a record length of zero (lrecl=0) when you open
a binary file, then a physical file with a record length of 80 is
created.
- If the lrecl parameter is not specified for program-described
files, then the record length that is specified on the CRTPRTG, or CRTPRTF is
used. This length has a default value of 132, and if specified must be
a minimum of 1.
- Note:
- To use the source entry utility (SEU) to edit source files,
specify an lrecl value of 240 characters or less on
fopen().
[ Top of Page | Previous Page | Next Page | Table of Contents ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.