Please find the below requirement for the same
INPUT1 : List of DSN in the File
USER.TEST.DSN1
USER.TEST.DSN2
USER.TEST.DSN3
USER.TEST.DSN4
USER.TEST.DSN5
USER.TEST.DSN6
USER.TEST.DSN7
USER.TEST.DSN8
USER.TEST.DSN9
INPUT2 : KEy to be verified from the INPUT1 list of DSN
KEY
Data in DSN1..DSN9 is present in the POSITION 40.
------+----1----+----2----+----3----+----4----+----5---
ASDASDASDASDASDSADSADASDSADA 123456789 --> Date in USER.TEST.DSN1
ASDASDASDASDASDSADSADASDSADA 123456781 --> Date in USER.TEST.DSN2
ASDASDASDASDASDSADSADASDSADA 123456783 --> Date in USER.TEST.DSN3
ASDASDASDASDASDSADSADASDSADA 123456789 --> Date in USER.TEST.DSN4
ASDASDASDASDASDSADSADASDSADA 123456781 --> Date in USER.TEST.DSN5
ASDASDASDASDASDSADSADASDSADA 123456789 --> Date in USER.TEST.DSN6
ASDASDASDASDASDSADSADASDSADA 123456789 --> Date in USER.TEST.DSN7
ASDASDASDASDASDSADSADASDSADA 123456789 --> Date in USER.TEST.DSN8
ASDASDASDASDASDSADSADASDSADA 123456789 --> Date in USER.TEST.DSN9
OUTPUT1
USER.TEST.DSN1 KEY FOUND
USER.TEST.DSN2 KEY NOT FOUND
USER.TEST.DSN3 KEY NOT FOUND
USER.TEST.DSN4 KEY FOUND
USER.TEST.DSN5 KEY NOT FOUND
USER.TEST.DSN6 KEY FOUND
USER.TEST.DSN7 KEY FOUND
USER.TEST.DSN8 KEY FOUND
USER.TEST.DSN9 KEY FOUND
Please let me know in case of any further information is required.
Regards,
Seetharaman