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

Scrubbing the output file for names and addresses


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

New User


Joined: 25 Mar 2008
Posts: 3
Location: Hyderabad, India

PostPosted: Tue Oct 15, 2013 9:51 pm
Reply with quote

I have a file in which there is client name and Address. I would like to change name and addresses to something that is un recognizable. I would like sort to be used when the record has "Social Security" on it, at position 186. The data looks as below.

Code:
               First Name starts at 220 column
                                    \/
Y                                                               
                                                             
DTarget Date - 2005            100%                         
TTotal                         100%                         
Y..............................                             
Social Security Number:XXX-XX-XXXX FIRST NAME1            LAST NAME 2
                                                             
Y                                                           
                                                             
DTarget Date - 2010            100%                         
TTotal                         100%                         
Y..............................                             
Social Security Number:XXX-XX-XXXX FIRST NAME2            LAST NAME 2
                                                       


I have seen ALTSEQ and IFTHEN but not sure how to use those in this case. Any help would be much appreciated.
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: Tue Oct 15, 2013 10:02 pm
Reply with quote

Hello and welcome to the forum,

Your topic is about names & addresses but you don't show them. . .

What you want to do will probably not be done with ALTSEQ or IFTHEN. . .

How big is the dataset you want to "scrub"? How many different names & addresses?

This has been asked before and there should be some topics in the forum.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Oct 15, 2013 10:03 pm
Reply with quote

You identify the lines to change with IFTHEN. You blat the name and address. How you want to blat them, you haven't said. Remember, if it is reversible, it is no use at all. Why are you not treating the SSN in the same way?
Back to top
View user's profile Send private message
sundeepthota

New User


Joined: 25 Mar 2008
Posts: 3
Location: Hyderabad, India

PostPosted: Tue Oct 15, 2013 11:22 pm
Reply with quote

The name and address are on the same line one after the other.

The file has close to 3 million records overall its a VB file.

I need to scrub SSN, Name and Address file so that the Name is not recognizable. I need to do the same with SSN and adress as well, but figured that if someone can give me a solution for Name, i can extrapolate that to other fields. I dont have to trace it back.

I am wondering if the below code might work.

Code:
SORT FIELDS=COPY                         
ALTSEQ CODE=(C1E9,D3E9)                 
INREC IFTHEN=(WHEN=(186,6,CH,EQ,C'SOCIAL'),
BUILD=(1,219,220,30,TRAN=ALTSEQ,250,30))   
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: Tue Oct 15, 2013 11:37 pm
Reply with quote

Hello,

Quote:
The file has close to 3 million records overall its a VB file.
Which is why i believe IFTHEN will not work for you. . .

Quote:
I am wondering if the below code might work.
I do not believe the code will do what you want.

Please explain just how much you want the name scrambled. Show a few sample names and how you want them to be after your process.
Back to top
View user's profile Send private message
sundeepthota

New User


Joined: 25 Mar 2008
Posts: 3
Location: Hyderabad, India

PostPosted: Wed Oct 16, 2013 12:37 am
Reply with quote

Hello,

Thanks for your response
I am good with scrambling the name few characters. i.e
Replacing A with Z
Replacing E with Y
Replacing I with X
Replacing O with V

Sandy Marcelas - > Szndy Mzrcylzs
Ingrid bergman - > XngrXd ByrgmzN

Can you help me out on this?
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: Wed Oct 16, 2013 1:45 am
Reply with quote

Hello,

If that little amount of scrambling is acceptable, the ALTSEQ might suffice. Your people understand that all of the names will be easily readable this way. . .

What about addresses and social security numbers?

Will there be data from other sources that need to "match" with these jumbled values?
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 Binary File format getting change whi... All Other Mainframe Topics 7
No new posts How to turn off 'ACTION' SDSF output ... TSO/ISPF 2
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
Search our Forums:

Back to Top