book
Article ID: 186539
calendar_today
Updated On:
Products
OPS/MVS Event Management & Automation
Issue/Introduction
How to check if a member of a PDS dataset exists using OPS/REXX?
Resolution
The OPSPDS function can be used to check if a member of a PDS exists.
Sample usage:
operation = 'EXISTS'
pds = 'CAI.PPOPTION'
member = 'XP41'
var = OPSPDS(operation,pds,member)
say var
If var returns 16 it means the member does not exist.