Read and Write CSV file COBOL

 1 Replies
 1 Subscribed to this topic
 78 Subscribed to this forum
Sort:
Author
Messages
klkemp100
Basic Member
Posts: 12
Basic Member

    Does anyone have a quik example of a program that does the following...

    1. opens a csv file as input, opens a second csv file as output

    2. reads the data from input file and moves fields to the output file and writes a record 

    New at this Lawson COBOL stuff.

    I assume its simple like...

    open input inputcsfvile

    open output outputcsvfile

    move input-field-a to output-field-a.

    move input-field-b to output-field-b.

    write outputcsvfile

    close inputcsvfile

    close outputcsvfile

     

    Thanks!

    Ragu Raghavan
    Veteran Member
    Posts: 475
    Veteran Member
      That is pretty much it. What kind of issues are you having?