SkipRec

Top  Previous  Next

S

A

W

WS

ü

ü

The following commands have been implemented in EMUEScript exactly as they are implemented in OLIE™:

 

Syntax -

       SkipRec <number of records>

               Where:

                       <number of records>  is an integer or a variable that contains an integer.

 

Description:

This command is used to ignore the specified number of records from a data file.  If not specified the default value for <number of records> is one. SkipRec is used to skip the number of records specified by <Records> in the input file.  Typically it is used to skip headers, but it can be used at any point in the input file.  If no value is provided for <Records>, one record will be skipped.

 

Note: Any SkipRec command that appears after a Read has been performed will skip one record less than the number specified in the SkipRec command.

Note: The SkipRec behavior is altered slightly by the SetStartup MergeInputFileLines command.  For more information see MergeInputFileLines. If the script is configured to merge input file lines using the MergeInputFileLines SetStartup command, the SkipRec command will still skip physical lines rather than merged lines.  For example, if MergeInputFileLines is set to 3, SkipRec will still skip single records, even though the Read command will cause three records to be read into the buffer as one.

 

Sample:

       The following statement uses the SkipRec command to ignore four records from a data file.

SkipRec 4