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

How to remove leading zeroes and left align numeric field ?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Shift left VB record without x00 endi... DFSORT/ICETOOL 11
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Remove leading zeroes SYNCSORT 4
Search our Forums:

Back to Top