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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am


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