Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Sort in JCL

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

New User


Joined: 29 Sep 2007
Posts: 90
Location: chenna/i-

PostPosted: Tue Sep 15, 2015 9:54 pm    Post subject: Sort in JCL
Reply with quote

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
View user's profile Send private message

RahulG31

Active User


Joined: 20 Dec 2014
Posts: 411
Location: USA

PostPosted: Tue Sep 15, 2015 10:19 pm    Post subject: Reply to: Sort in JCL
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1932
Location: UK

PostPosted: Wed Sep 16, 2015 1:51 am    Post subject:
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1827
Location: NY,USA

PostPosted: Wed Sep 16, 2015 2:30 am    Post subject:
Reply with quote

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
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 Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us