Hi all,
I've been looking for hours on the net but found nothing really suitable.
How can I read a csv file, containing records with structure:
employeeID;type;typeID;startDate;endDate
into this:
FD CsvFile.
01 CsvRecord.
88 EndOfCsvFile VALUE HIGH-VALUES.
03 employeeID pic 9(2).
03 type pic x(4).
03 typeID pic 9(2).
03 startDate pic x(20).
03 endDate pic x(20).
A record in the csv file could look like this :
01;acti;01;2008-04-15 01:42:03;2008-04-15 01:42:03
The problem is that, there are multiple records in the csv file and they are separated with a newline.
How can I program this in cobol, so everytime, the program encounters a new line (int the csv), it starts with creating a new record?
Greetz Daan
I've been looking for hours on the net but found nothing really suitable.
How can I read a csv file, containing records with structure:
employeeID;type;typeID;startDate;endDate
into this:
FD CsvFile.
01 CsvRecord.
88 EndOfCsvFile VALUE HIGH-VALUES.
03 employeeID pic 9(2).
03 type pic x(4).
03 typeID pic 9(2).
03 startDate pic x(20).
03 endDate pic x(20).
A record in the csv file could look like this :
01;acti;01;2008-04-15 01:42:03;2008-04-15 01:42:03
The problem is that, there are multiple records in the csv file and they are separated with a newline.
How can I program this in cobol, so everytime, the program encounters a new line (int the csv), it starts with creating a new record?
Greetz Daan