Hi balaryan , Though the post is too old as 4years thought of replying for others who seek the same answer,, I hope below logic can work for you
//SYSIN DD *
OPTION COPY
INCLUDE COND=(1,6,CH,NE,8,6,CH)
/*
Search found 1 match
- Tue Nov 15, 2016 8:15 am
- Forum: JCL
- Topic: How to compare two fields used in dataset and check for dup
- Replies: 6
- Views: 11197