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

Is it possible to mask some characters in Alphanumeric fiel


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
samanthjain

New User


Joined: 25 Jul 2008
Posts: 17
Location: Mumbai

PostPosted: Fri Feb 20, 2009 4:38 pm
Reply with quote

Hi,

I have a field defined as X(10) and values can be like 100-10-101.
I want this to be written as ***-**-101.
Is this something can we do by Editing Alphanumeric ?

Or any other way without using temp variable ?


Thank you.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Feb 20, 2009 10:28 pm
Reply with quote

It's not really clear what you want to do exactly. However, if you just want to overlay characters in specific columns, you can use a DFSORT job like this:

Code:

//S1    EXEC  PGM=SORT
//SYSOUT    DD  SYSOUT=*
//SORTIN DD *
100-10-101
/*
//SORTOUT DD SYSOUT=*
//SYSIN    DD    *
  OPTION COPY
  INREC OVERLAY=(1:C'***',5:C'**')
/*


If you want to do something else, then you need to explain clearly and in more detail exactly what you want to do.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts Count the number of characters in a f... CA Products 1
No new posts Want to mask Middle 8 Digits of Debit... COBOL Programming 3
No new posts Assembler: Set Program Mask for decim... PL/I & Assembler 4
Search our Forums:

Back to Top