SETFILE


9.0E

 

The SETFILE instruction sets information from a file variable. The instruction uses the following format:

 

 

[label]

SETFILE

{file},{keyword}={value}[,{keyword=value}...]

 

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:

  1. 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.

  2. The following keywords may be used:

  3.  

    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

     



    PL/B Language Reference SCHEMA STREAM