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

Convert a string in a file by looking up another file


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

New User


Joined: 22 Feb 2010
Posts: 56
Location: Cochin

PostPosted: Fri Sep 19, 2014 8:25 pm
Reply with quote

Hi all,

I have the following requirement and I am trying to understand if we can implement this in sort/icetool.

I have a file (MEMBER.FILE) where the first name and last name of a person is encrypted. I want to decrypt this by looking into another file where the encrypted value of each alphabet is present.

The first name and last name is in between 10 - 50 columns (Inclusive) in the MEMBER.FILE.

The file (MAP.FILE) that contains mapping is of the below layout

Code:
01 Org-value pic x(01)
01 filler        pic x(01)
01 encrypted value pic x(01)


A-C
B-E
...
..
Where A is the actual value and C is the encrypted value.

Is it possible to look into the map.file and decrypt the name portion in the member.file using sort/icetool and create a new file membconv.file with the decrypted value using sort/icetool only?
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: Fri Sep 19, 2014 9:14 pm
Reply with quote

First, convince yourself that a big FINDREP can do what you want. Do this by making a small but non-trivial FINDREP.

Then use your reference file to generate the control cards you need for the FINREP step.
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 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 Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
Search our Forums:

Back to Top