800-WRITECSV
Name
800-WRITECSV-<FileName>
Description
On the first call, this API opens the file for output if it is not already open. If it has a header, it formats and writes the header, and determines from the use flags the order the fields are to be written (for information, see Use Flag (UF) Fields).
Note: the first write to an unopened file cannot occur within
a transaction state.
On subsequent calls, it formats and writes a record with data from working storage (REC area), writing only those fields with use flags on.
Return Values
One record is written in the CSV work file.
Programming Example: Writing to a CSV File
|