In this SORTIN1:
N010521N010521 Y00400 2009042420090424
N010531N010531 Y00400 2009042420090424
N010651N010651 Y01300 2009062520090625
in SORTIN2:
N01052103IR04/27/200906/01/201012/31/9999
N010521031R04/27/200906/01/201012/31/9999
N01053103IR04/27/200906/01/201012/31/9999
N010531031R04/27/200906/01/201012/31/9999
N010531033R04/27/200906/01/201012/31/9999
N01064103IR06/23/200906/01/201012/31/9999
My requirement is to compare SORTIN1 and SORTIN2 based on the first 7 bytes and if any record matches then the record present in SORTIN2(which is a matched record) should be moved to OUT1.
So in this case the OUT1 should be like,
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
Good to hear it is working - thank you for sharing your solution
fyi - you solution has been "Code'd" to preserve alignment and improve readability. when you post code, jcl, data, etc, it is best to use the Code tag. There is a Preview to let you see your post as it will appear to the forum rather than how it looks in the Reply Editor.