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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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