MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Invalid Numeric fields in csv

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
bade_miya
Beginner


Joined: 10 Dec 2003
Posts: 110
Topics: 38

PostPosted: Mon Jun 25, 2007 2:13 pm    Post subject: Invalid Numeric fields in csv Reply with quote

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.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Jun 25, 2007 2:18 pm    Post subject: Reply with quote

bade_miya,

Check this link which exactly deals with your situation

http://www.mvsforums.com/helpboards/viewtopic.php?p=41430#41430

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bade_miya
Beginner


Joined: 10 Dec 2003
Posts: 110
Topics: 38

PostPosted: Mon Jun 25, 2007 3:02 pm    Post subject: Reply with quote

Hi Kolusu,

Thanks a million. I did not expect a reply this quick at this time of the day. Smile. You are really a life saver.. Smile. Thanks a lot again.

Regards
bade_miya
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group