I am pretty new to DFSORT and have a REXX code which is currently doing
I have file 1 which has a list of datasets in this format :
1-3 6-50 (max dataset length 44)
xxx somedatasetname-1-hereupto44chars
xxx somedatasetname-4-hereupto44chars
xxx somedatasetname-7-hereupto44chars
and another file 2 also containing a list of datasets along with some other fields:
1-6 10-54 (upto 44 chars) 57-66 70-79 83-87 92-93
vvvvvv somedatasetname-1-hereupto44chars dd/mm/yyyy dd/mm/yyyy xxxxx zz
vvvvvv somedatasetname-2-hereupto44chars dd/mm/yyyy dd/mm/yyyy xxxxx zz
vvvvvv somedatasetname-3-hereupto44chars dd/mm/yyyy dd/mm/yyyy xxxxx zz
vvvvvv somedatasetname-4-hereupto44chars dd/mm/yyyy dd/mm/yyyy xxxxx zz
vvvvvv somedatasetname-5-hereupto44chars dd/mm/yyyy dd/mm/yyyy xxxxx zz
vvvvvv somedatasetname-6-hereupto44chars dd/mm/yyyy dd/mm/yyyy xxxxx zz
vvvvvv somedatasetname-7-hereupto44chars dd/mm/yyyy dd/mm/yyyy xxxxx zz
I want to compare these files and extract records from file 2 into a third file which has the dataset names as listed in file 1.
Outputfile:
vvvvvv somedatasetname-1-hereupto44chars dd/mm/yyyy dd/mm/yyyy xxxxx zz
vvvvvv somedatasetname-4-hereupto44chars dd/mm/yyyy dd/mm/yyyy xxxxx zz
vvvvvv somedatasetname-7-hereupto44chars dd/mm/yyyy dd/mm/yyyy xxxxx zz
I am currently using a REXX to do this, but that takes up quite a lot of time comparing each record one by one with the second field in file 2. I am new to DFSORT and want to see if DF/SORT can do it more quickly for me. Any ideas?