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 SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm


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