IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL SORT - FILTER RECORDS WITH CRITERIA IN AN INPUT FILE


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Apr 30, 2012 4:30 pm
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
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 All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts Alternative of JoinKeys in SORT DFSORT/ICETOOL 2
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
Search our Forums:


Back to Top