In this SORTIN1:
N010521N010521 Y00400 2009042420090424
N010531N010531 Y00400 2009042420090424
N010651N010651 Y01300 2009062520090625
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: 19270 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.