DFSORT JOINKEYS logic to get key matching records

Best example for JOINKEYS in sort to get output file of records matching keys from two input files:

JOINKEYS F1=IN1,FIELDS=(22,3,A,55,9,D) 
  • You should not use same DD name on two statements (in F1 and F2)
  • The order for both files should match (A- Ascending and D -Descending should be same)

Also read


Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.