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

HOw to mask the data in the file


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

New User


Joined: 14 Oct 2007
Posts: 29
Location: Bangalore

PostPosted: Mon Jul 25, 2011 8:33 am
Reply with quote

Hi
I have a requirement like below;
My file length is 80. From position 20 to 30. It has different customer names. I want to mask with 'AAAAA' from position 20 to 30. I don't want to display customer names in the output filed. Using SORT how can we do this. Could you please help me on this.

Thanks
JMR
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jul 25, 2011 9:48 am
Reply with quote

Hello,

Read about OVERLAY.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Jul 25, 2011 11:50 am
Reply with quote

Hi,

position 20-30 is 11 bytes, 'AAAAA' is only 5 bytes ?

Exactly what do you want in position 20-30 ? is it 'AAAAA' plus 6 spaces ?


Gerry
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: Mon Jul 25, 2011 11:02 pm
Reply with quote

JMR,

If you want 11 'A's in 20-30, you can use these DFSORT control statements:

Code:

   OPTION COPY
   INREC OVERLAY=(20:11C'A')


If you want 5 'A's followed by 6 spaces, you can use these DFSORT control statements:

Code:

   OPTION COPY
   INREC OVERLAY=(20:5C'A',6X)


If you want something else, say exactly what you want.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080
Back to top
View user's profile Send private message
jmreddymca
Warnings : 1

New User


Joined: 14 Oct 2007
Posts: 29
Location: Bangalore

PostPosted: Tue Jul 26, 2011 8:31 am
Reply with quote

Thanks a lot to all your support. Above Frank's code is working fine.
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 FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Store the data for fixed length COBOL Programming 1
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