bade_miya Beginner
Joined: 10 Dec 2003 Posts: 110 Topics: 38
|
Posted: Mon Jun 25, 2007 2:13 pm Post subject: Invalid Numeric fields in csv |
|
|
Hi All,
I hope someone can help me with one of the problems which i am facing. I am creating a csv file in mainframe and sending it as attachment to some mail id's. Some fields are numeric and some fields are character. The process is working but the numeric fields are not coming properly. if my numeric field is say 00445566779998888, then the field in csv is showing as 4.4556e+16 or some float value like that. I tried putting some hex character before the numeric fields and it is displaying properly. But i would like to know whether there is any other way to achieve this other than putting hex characters or quotations?
I am currently using the below sort card to convert the mainframe file to a csv.
Code: |
INREC FIELDS=(X'10',1,18,C',',X'10',19,10,C',',29,4,C',',33,20,C',',
53,2,C',',55,25,C',',80,30,C',',110,30,C',',140,30,C',',170,30,
C',',200,20,C',',220,9,C',',229,13)
|
Thanks a lot for your help.
Regards
bade_miya. |
|