Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Convert a string in a file by looking up another file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
seahawk789

New User


Joined: 22 Feb 2010
Posts: 47
Location: Cochin

PostPosted: Fri Sep 19, 2014 8:25 pm    Post subject: Convert a string in a file by looking up another file
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Fri Sep 19, 2014 9:14 pm    Post subject: Reply to: Convert a string in a file by looking up another f
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us