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 Validate if a Value from the file is ... balacsv2 COBOL Programming 8 Mon Jun 19, 2017 11:52 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm


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