MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Masking an alphanumeric field in Easytrieve

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
mahesh_chv
Beginner


Joined: 04 Aug 2005
Posts: 41
Topics: 16

PostPosted: Thu Nov 01, 2007 11:21 pm    Post subject: Masking an alphanumeric field in Easytrieve Reply with quote

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
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Fri Nov 02, 2007 4:57 am    Post subject: Reply with quote

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
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Fri Nov 02, 2007 5:02 am    Post subject: Re: Masking an alphanumeric field in Easytrieve Reply with quote

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
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Nov 05, 2007 3:47 am    Post subject: Reply with quote

mahesh_chv,

Declare yor alpha numeric item as a group variable and move "-" whereever you want.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group