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
 

 

Supress leading zeroes using NATURAL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
larochka

New User


Joined: 10 Jul 2006
Posts: 3

PostPosted: Mon Jul 10, 2006 10:19 pm    Post subject: Supress leading zeroes using NATURAL
Reply with quote

I need to write out a record counter, but to suppress all leading zeroes.
Any ideas?
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Jul 11, 2006 1:02 am    Post subject:
Reply with quote

How about ZS parameter?

You may set this value at session level, program level, statement level and output-element level.

O.
Back to top
View user's profile Send private message
larochka

New User


Joined: 10 Jul 2006
Posts: 3

PostPosted: Tue Jul 11, 2006 2:04 am    Post subject:
Reply with quote

Would you mind to give me an example?
Thank you!
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Jul 11, 2006 1:24 pm    Post subject:
Reply with quote

First - my mistake. The parameter is ZP.

Now, NATURAL has default zero suppression for numeric fields. Unless you epecify (EM=9999), the result is zero suppressed.

If you still have problem, you may try (EM=ZZZZZ).

O.
Back to top
View user's profile Send private message
larochka

New User


Joined: 10 Jul 2006
Posts: 3

PostPosted: Tue Jul 11, 2006 6:55 pm    Post subject:
Reply with quote

Thank you, that is what I did. I thought you were talking about field defenition, like COBOL.
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 -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Reg:Displaying the particular month o... bhavana yalavarthi All Other Mainframe Topics 4 Sat Jul 08, 2017 8:13 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
This topic is locked: you cannot edit posts or make replies. Natural ADABAS Opening with CTS enikhilk Mainframe Jobs 0 Wed Nov 30, 2016 5:37 pm
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm
No new posts Natural/Adabas - Migration/Replatform Virendra Shambharkar Java & MQSeries 5 Tue Apr 05, 2016 2:37 pm


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