IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Numeric to text using SAS


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
purushottam

New User


Joined: 26 Feb 2007
Posts: 37
Location: pune

PostPosted: Wed Jan 21, 2015 3:29 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jan 21, 2015 6:20 pm
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: 1742
Location: Tirupur, India

PostPosted: Wed Jan 21, 2015 7:26 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts TEXT-TO-PDF Compuware & Other Tools 1
No new posts Convert HEX to Numeric DB2 3
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts Find a record count/numeric is multip... COBOL Programming 1
Search our Forums:

Back to Top