Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Supress leading 0's while writing to a file using Easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
Kumail Fazal

New User


Joined: 29 May 2007
Posts: 12
Location: Mysore

PostPosted: Fri Oct 26, 2007 11:03 am    Post subject: Supress leading 0's while writing to a file using Easytrieve
Reply with quote

Hi,
I am looking for a mechanism where in you can supress the leading zero's while writing the number(count) to a file.
The problem here is, say i have a counter which i defined as

WS-COUNT W 9 N MASK (BWZ 'ZZZ,ZZZ,ZZ9')

when i increment this counter based on certain conditions and finally when i display the number on spool i am able to mask the leading zero
but
when i use the same variable to write (after moving it to the file variable) i am not able to supress the leading zeros

Thanks
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Fri Oct 26, 2007 2:51 pm    Post subject:
Reply with quote

Hi Kamil,

Its because ur file variable may not be have mask ...
Back to top
View user's profile Send private message
Kumail Fazal

New User


Joined: 29 May 2007
Posts: 12
Location: Mysore

PostPosted: Fri Oct 26, 2007 4:08 pm    Post subject: Reply to: Supress leading 0's while writing to a file using
Reply with quote

Hi guptae,
i have tried masking my file variable, but it hasn't been of much help, still it is not been able to supress the leading zeros.
for ex my file variable has been defined as
OUTFILE1-NUMS 53 9 N MASK (BWZ 'ZZZ,ZZZ,ZZ9')

If you know a way out please let me know?
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us