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: