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

Convert packed decimal to display format 000.00 through SAS


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

New User


Joined: 16 Jul 2008
Posts: 12
Location: pune

PostPosted: Tue Aug 10, 2010 8:24 pm
Reply with quote

My SAS program takes an input field in PD(packed decimal) format ex PD8.2 and i want output in number format 000000000000.00

While using PUT function,what will be the declaration to get output displayed as given above.

WEXNETVOL Z13.2 or WEXNETVOL ZD13.2 or WEXNETVOL 13.2

or any other way.


Thanks,
Shweta
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Aug 10, 2010 10:08 pm
Reply with quote

Z13.2 will put leading zeroes on the output.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Wed Aug 11, 2010 8:31 am
Reply with quote

sgupta9 -

Even if you cannot read SAS documentation, which is quite well organized, you could not easily test this, esp. since you had just a few possible answers?
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 Populate last day of the Month in MMD... SYNCSORT 2
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
Search our Forums:

Back to Top