I am writing a program in COBOL that reads data from table and dumps it into a CSV file. My work definitions columns are defined as (for instance) FACILITYCODE. Below is the detail of of column:
Working Storage : WS-FACILITYCODE PIC X(04) VALUE "XYZ".
Program Definition: MOVE WS-FACILITYCODE TO ABI-FACILITYCODE.
When my program is written, the CSV header comes out as "Facilitycode." I want to change that to "FACILITY_CODE"
Code used to create the CSV PERFORM 800-WRITECSV-XYZINV.
A comparable exmaple in SQL world would be 'AS'.
Any suggestions please.
Thank you!