Product Documentation

FairCom ISQL

Previous Topic

Next Topic

The FOR RECORD Statement

The FOR RECORD statement writes each valid record into the data file after selecting the record from the database. The syntax for the FOR RECORD statement is shown below:


FOR RECORD record_name DUMP INTO data_file_name

USING select_statement ;


The following are the variable descriptions of the FOR RECORD statement:

  • record_name specifies the same name used in the associated DEFINE RECORD statement.
  • data_file_name is the name of the output data file name.
  • select_statement is any valid SELECT statement.

TOCIndex