IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Supress leading 0's while writing to a file using Easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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: 1208
Location: Bangalore,India

PostPosted: Fri Oct 26, 2007 2:51 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top