Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Numeric to text using SAS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
purushottam

New User


Joined: 26 Feb 2007
Posts: 34
Location: pune

PostPosted: Wed Jan 21, 2015 3:29 pm    Post subject: Numeric to text using SAS
Reply with quote

I need your help while converting CSV mainframe flat file to XLS format using SAS ODS function.

Everthing work but field which has lenght more than 10 and has numeric value in it, they show up in exponential format in xls file. For example - 2,01087E+14, actual value in my CSV mainframe flat file is 201086508850506.

It works well if I try seprating the fields by some seprater something like 201086508-850506.

This fields is defined as below in my SAS code

length Fieldname A 20

Can you help me to resolve it.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jan 21, 2015 6:20 pm    Post subject:
Reply with quote

Have you tried a FORMAT for the variable? If not, you could use the PUT function to convert the numeric variable to a character variable.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1504
Location: Chennai

PostPosted: Wed Jan 21, 2015 7:26 pm    Post subject:
Reply with quote

Hi,

Quote:
I need your help while converting CSV mainframe flat file to XLS format using SAS ODS function.


How are you actually doing this? With ODS TAGSETS.EXCELXP or ODS MSOFFICE2K or ODS CSV & naming the output file as .CSV?

Could you show the program that you are using.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate if a Value from the file is ... balacsv2 COBOL Programming 8 Mon Jun 19, 2017 11:52 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us