View previous topic :: View next topic
|
Author |
Message |
sivasaras
New User
Joined: 29 Sep 2007 Posts: 93 Location: chenna/i-
|
|
|
|
hi,
I have 2 files like below.
First dataset:
Code: |
MA.MAAS.TEST ABC123
MA.MAA.** PQD456 |
Second dataset:
Code: |
ABC123 SIVA
PQD456 SARAS |
I want the output file like
Code: |
MA.MAAS.TEST ABC123 SIVA
MA.MAA.** PQD456 SARAS |
How can it be done by sort?
Both having LRECL=255 and RECFM=fb
Please let me know
[Coded and de-capped] |
|
Back to top |
|
|
RahulG31
Active User
Joined: 20 Dec 2014 Posts: 446 Location: USA
|
|
|
|
Are the columns fixed lengths?
Can there be multiple rows containing same value for Column1 in File 2 (and column 2 in file1 i.e. multiple ABC123) ?
What if a match is not found in either file?
And have you searched before posting?
. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
You have been a member for 8 years. Surely you know that SORT is not JCL and that what you want is sort control cards and not JCL? So why can you not post in the correct part of the forum?
And why can you not use the code tags for your data/code as you should?
And why not explain how you get your output from yur input instead of having helpers guess?
Moving to DFSort, If your sort product is not DFSort then let us know who provides your sort product and it can be moved again. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
Search for "Sort tricks DFSORT" on Google and download the pdf link and look for the examples of join keys. However, search on the fourm too. |
|
Back to top |
|
|
|