Focal Point
csv with different formats in same file

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3731099192

July 18, 2008, 09:54 AM
Georgie V
csv with different formats in same file
i have to create a csv file with 2 different record formats header followed by multiple detail records, i have finally gotten the csv file by using ON TABLE PCHOLD AS FILENAME COMMA, the commas and quotes are where they should be but i can't get the 2 formats in the file. Open for suggestions.


7.6.4 reporting server running on iseries 5
http server windows platform
July 18, 2008, 10:06 AM
Tom Flynn
Georgie V,

Try

APP FI FILENAME DISK FOLDERNAME/FILENAME.com
or
APP FI FILENAME DISK c:\ibi\apps\FOLDERNAME\FILENAME.com


Then, generate the HEADER record into the FILENAME:

ON TABLE HOLD AS FILENAME FORMAT COMMA
END
-RUN
FILEDEF FILENAME CLEAR
-RUN

APP FI FILENAME DISK FOLDERNAME/FILENAME.com (APPEND
or
APP FI FILENAME DISK c:\ibi\apps\FOLDERNAME\FILENAME.com (APPEND

Now, populate with your detail

Hope this helps...

Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe