SETFILE
9.0E
The SETFILE instruction sets information from a file variable. The instruction uses the following format:
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
file
Required. A previously defined AFILE, IFILE, or FILE variable.
keyword
Required. One of the valid keywords defined below.
value
Required. A previously defined Character String Variable or Numeric Variable from which the value is obtained.
Flags Affected: ZERO
Note the following:
If the file specified is not open, the ZERO flag is cleared and the variables remain unchanged. If the file is open, the ZERO flag is set.
The following keywords may be used:
|
Keyword |
Sets ... |
|
VIEW={svarslit} |
a view name that exist in a schema database to an AFILE, IFILE, or FILE variable. If the {svarslit} is NULL, the instruction removes the current assigned view name. If the {svarslit} view name does not exist in the schema database, an appropriate I85 error is generated. |
|
SQLIORECORDS={nvar} |
the <SQL> 'RECORDS' attribute. (9.6B) The new ' attribute takes affect when the current cached record set is exhausted or a READ by key operation is executed. |
See Also: GETFILE, Disk I/O Instructions
![]() |