uma
New User
Joined: 18 Mar 2005 Posts: 8
|
|
|
|
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? |
|
uma
New User
Joined: 18 Mar 2005 Posts: 8
|
|
|
|
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 |
|