View previous topic :: View next topic |
Author |
Message |
mahesh_chv Beginner
Joined: 04 Aug 2005 Posts: 41 Topics: 16
|
Posted: Thu Nov 01, 2007 11:21 pm Post subject: Masking an alphanumeric field in Easytrieve |
|
|
Hi ,
I havent worked in Easytrieve before.
we have a field with decleration with char(9) .
This field needs to be printed on to a report in the following format
'xxxxxx-xx-x' . Is there any way to achieve this in Easytrieve.
We tried masking the field using Field name-1 9 A MASK 'xxxxxx-xx-x' declaration.
Seems easytrieve doesnt support masking of Alpha numeric fields.
Is there anyway to achieve this ?
Mahesh |
|
Back to top |
|
|
vivek1983 Intermediate
Joined: 20 Apr 2006 Posts: 222 Topics: 24
|
Posted: Fri Nov 02, 2007 4:57 am Post subject: |
|
|
mahesh_chv,
I am unable to think of a EZT solution. But I could provide u the following suggestion:
Before passing on the input file to the EZT, how about inserting '-' in the field via sort and then passing the newly created input file to EZT so that u will get the desired output in the report? _________________ Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay) |
|
Back to top |
|
|
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Fri Nov 02, 2007 5:02 am Post subject: Re: Masking an alphanumeric field in Easytrieve |
|
|
mahesh_chv wrote: | We tried masking the field using Field name-1 9 A MASK 'xxxxxx-xx-x' declaration.
Seems easytrieve doesnt support masking of Alpha numeric fields.
Is there anyway to achieve this ? | Yes, but you will just have to do it the old fashioned way with moves..... |
|
Back to top |
|
|
vkphani Intermediate
Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Mon Nov 05, 2007 3:47 am Post subject: |
|
|
mahesh_chv,
Declare yor alpha numeric item as a group variable and move "-" whereever you want. |
|
Back to top |
|
|
|
|