Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 9 Thu Dec 14, 2017 3:52 pm
No new posts Squeeze record left so that zeroes ar... Vignesh Sid SYNCSORT 5 Fri Nov 10, 2017 1:40 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us