OPS/MVS Event Management & Automation
How to check if a member of a PDS dataset exists using OPS/REXX?
The OPSPDS function can be used to check if a member of a PDS exists.
operation = 'EXISTS'
pds = 'CAI.PPOPTION'
member = 'XP41'
var = OPSPDS(operation,pds,member)
If var returns 16 it means the member does not exist.