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
 

 

padding zeroes

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: padding zeroes
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 Moderator


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

PostPosted: Wed Apr 05, 2006 8:51 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Padding with variable number of SPACE... cybertaurean SYNCSORT 7 Wed Oct 28, 2015 11:22 pm
No new posts Add Trailing Zeroes depending upon th... Rohit Umarjikar DFSORT/ICETOOL 3 Fri Oct 23, 2015 1:47 am
No new posts To insert zeroes in a PIPE delimited ... dharmaraok DFSORT/ICETOOL 3 Mon Mar 16, 2015 3:05 pm
No new posts CSV file , to display numeric data w... Deepthy Jose P JCL & VSAM 10 Fri Nov 21, 2014 12:50 pm
No new posts Spaces instead of zeroes in Totaled f... saurabh39 CA Products 3 Fri Feb 14, 2014 2:16 pm


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