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: 331
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: 1713
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: 1609
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 Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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