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
 

 

JCL SORT - FILTER RECORDS WITH CRITERIA IN AN INPUT FILE

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

New User


Joined: 11 Oct 2005
Posts: 62
Location: India

PostPosted: Mon Apr 30, 2012 4:28 pm    Post subject: JCL SORT - FILTER RECORDS WITH CRITERIA IN AN INPUT FILE
Reply with quote

Hi,

I've below requirement, please advice if it can be accomplished by JCL SORT.

1) I've a B/L extraction file in the below format:

UBL TST1969852430F00227026XYZ COMPANY
UBL TST2868852431F00337026ABC COMPANY

Positions 9 thru 17 is B/L number

2) I've a B/L key file, which has required B/L numbers

Requirement:

I'd like to copy the records from B/L extraction file to output file for all the B/L numbers which are in the key file (file 2), rest should be ignored.

Please advice the steps.

Thanks & Regards,
Sri
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Mon Apr 30, 2012 4:30 pm    Post subject: Reply to: JCL SORT - FILTER RECORDS WITH CRITERIA IN AN INPU
Reply with quote

You need to use JOINKEYS. There are many examples here if you search. Yours is very simple from what you have said.
Back to top
View user's profile Send private message
srinut123

New User


Joined: 11 Oct 2005
Posts: 62
Location: India

PostPosted: Mon Apr 30, 2012 4:59 pm    Post subject: Reply to: JCL SORT - FILTER RECORDS WITH CRITERIA IN AN INPU
Reply with quote

Thanks for the quick response Bill. I tried JOINKEYS and it worked fine.
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 Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am


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