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
 

 

How to remove leading zeroes and left align numeric field ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
uma

New User


Joined: 18 Mar 2005
Posts: 8

PostPosted: Fri Mar 18, 2005 8:41 pm    Post subject: How to remove leading zeroes and left align numeric field ?
Reply with quote

I would like to know how to remove leading zeroes and at the same time
left align a variable containing a numeric value using EDIT mask-
For eg- if the count is of 10 digits as shown below
TRAILER1=('B',COUNT=(EDIT=(TTTTTTTTTT))),REMOVECC ,
i can remove leading zeroes by changing it to-
TRAILER1=('B',COUNT=(EDIT=(IIIIIIIITS,M0))),REMOVECC ,

That would be 0000000456 to .......456.
But now i want to left align the same?
Back to top
View user's profile Send private message

uma

New User


Joined: 18 Mar 2005
Posts: 8

PostPosted: Tue Mar 22, 2005 11:03 am    Post subject: Re: How to remove leading zeroes and left align numeric fiel
Reply with quote

Well,using JCL it is not possible to achieve this. I finally came to the conclusion that it can be done by calling a REXX in the form of parms, where in STRIP can be used to remove leading spaces after the removal of leading zeroes(as mentioned in the query using edit mask).


Cheerz,
Uma
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 INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


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