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
 

 

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: 343
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: 1756
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: 1651
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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm


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