How to check PDS member existence using OPS/REXX?
search cancel

How to check PDS member existence using OPS/REXX?

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?

Environment

OPS/MVS

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.

Additional Information