Author: janmejay
Subject: output data in CSV Format
Posted: Sat Oct 15, 2016 2:20 pm (GMT 5.5)
hello
my reqmt is dump the data in CSV format in output file.
I have declared my output file structure as
my out put should like :
after reading the input file , i am moving the values to corresponding outrec fields but when i am writing to output file the comma (,) is not displaying after end of fields. it showing blank.
it is coming as
can let me know the reason
Subject: output data in CSV Format
Posted: Sat Oct 15, 2016 2:20 pm (GMT 5.5)
hello
my reqmt is dump the data in CSV format in output file.
I have declared my output file structure as
Code: |
01 outrec 10 emp-name pic x(10) 10 filler pic x(1) value ','. 10 emp-addrs pic X(30). 10 Filler pic x(1) value ','. 10 emp salay pic s 9(5) comp-3 10 filler pic x(1) value ','. 10 emp-phone pic 9(10) |
my out put should like :
Code: |
mainppss ,ukusbangalore ,50000,9861098610 |
after reading the input file , i am moving the values to corresponding outrec fields but when i am writing to output file the comma (,) is not displaying after end of fields. it showing blank.
it is coming as
Code: |
mainppss ukusbangalore 50000 9861098610 |
can let me know the reason