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

padding zeroes


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Wed Apr 05, 2006 7:51 pm
Reply with quote

Hi,

I have a requirement like following

actually one file is created with the amount fields with the leading zero suppressed values.........................
PIC clause is 9(13)v9(2)
the values now are displaying like this
79.97
577.65

but the values has to display like following
0000000000079.97
0000000000577.65

now the requirement is I have to avoid the zero supression.......means I have to display the leading zeroes also.........I know this can be done using SORT....

plz advice.....

thx in advance...

pavan[/img]
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Apr 05, 2006 8:51 pm
Reply with quote

You can use a DFSORT EDIT mask like the following to show the values in the format you asked for:

EDIT=(TTTTTTTTTTTTT.TT)

Is that what you needed? If not, please explain what you need in more detail.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Remove leading zeroes SYNCSORT 4
No new posts How to fill with zeroes pd intended s... DFSORT/ICETOOL 6
No new posts Converting spaces to zeroes DFSORT/ICETOOL 7
No new posts Inefficient BUILD - VB records paddin... SYNCSORT 9
No new posts Squeeze record left so that zeroes ar... SYNCSORT 5
Search our Forums:

Back to Top