1. Keys file
2. PS file with number of PS files
1. Keys file
field1 field2 field3
101 89237598 20119283982349
101 89237598 20119283643410
102 89237598 20119283947351
103 89237598 20119283364352
104 89237598 20119283982311
105 89237598 20119283982372
106 89237598 20342483982349
107 89237598 20119543987645
108 89237598 20119282382394
101 89237598 20119283982349
101 89237598 20119283643410
102 89237598 20119283947351
103 89237598 20119283364352
104 89237598 20119283982311
105 89237598 20119283982372
106 89237598 20342483982349
107 89237598 20119543987645
108 89237598 20119282382394
2. Another PS file with some information. say file2
SAMNC.MODST.HKAJJD.SALKSF.D120122
SAMNC.SAMNC.HKAJJD.SALKSF.ADSONSA.D120122
SAMNC.SALMS.HKAJJD.SALKSF.SAMN.D120122
SAMNC.MODLS.HKAJJD.SALKSF.D120122
SAMNC.SAMNC.HKAJJD.SALKSF.ADSONSA.D120122
SAMNC.SALMS.HKAJJD.SALKSF.SAMN.D120122
SAMNC.MODLS.HKAJJD.SALKSF.D120122
My requirement is to take a PS dataset from the file2, search for the field3 from Keys file. If any of the key found in PS file taken from file2, write the dataset name on to file3 i.e. another ps file.
Please help me out in this...