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: 7251

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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm


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