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 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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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