View previous topic :: View next topic
|
Author |
Message |
srinivasarao.gunja
New User
Joined: 30 Jul 2014 Posts: 3 Location: india
|
|
|
|
Can any one suggest me how can I mask
Input var:
Code: |
SEQNUM W 3 N MASK ('ZZZ') |
Output var:
i am getting output as
But i need it in this fashion
Thanks in advance...
Code'd |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
A simple search or browse of the forum, or a simple read of the manual, would indicate that MASKs are only processed when data is output to a PRINTER file. So, from DISPLAY or PRINT statements. Not from PUT, or WRITE.
There is a file-exit here, kindly coded and tested by Chandan Inst, but you case is too simple even for that.
Redefine the field, twice. Firstly, first two bytes, secondly, first byte. Test first two bytes for zero, if true set to space. Else test first byte, if true set to space, else leave it alone. |
|
Back to top |
|
|
seagull
New User
Joined: 28 May 2007 Posts: 24 Location: Dublin
|
|
|
|
Why would you put a mask on an input field? It doesn't affect what is moved. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
It is very common to have MASKs on input fields. The MASK only operates on DISPLAY or PRINT. Where do you think the MASKs would best be? |
|
Back to top |
|
|
|