RPG/400 Help
- Entry
- Explanation
- Blank
- The file can be used by the program, and, if it is an input file, the file
is opened.
- U1-U8
- The file can be used by the program when the indicator is on; it is
ignored when the indicator is off.
- UC
- Programmer control of first open. If a file is to be initially
opened by the OPEN operation in the calculation specifications, then a UC
entry causes the file not to be opened at program initialization. This
entry is not valid for input files designated as primary, secondary, table, or
record-address files, or for output files conditioned by the 1P
indicator.
An entry of U1 through U8 in positions 71 and 72 lets the programmer
control the operation of input, output, update, and combined files at run
time. If the specified indicator is on at program initialization, the
file is opened. If the indicator is not on, the file is not opened and
is ignored during processing. The U1 through U8 indicators can be set
as follows:
- By the OS/400 control language.
- When used as a resulting indicator for a calculation operation or as field
indicators on the input specifications. Setting the U1 through U8
indicators in this manner has no effect on file conditioning.
The UC entry is required for programmer control of only the first file
opening. If a file is opened and later is closed by the CLOSE
operation, the programmer can reopen the file (by the OPEN operation) and the
UC entry is not required in positions 71 and 72.
[ Top of Page | Previous Page | Next Page | Table of Contents ]
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.