How can we access the Dynam catalog with REXX?
search cancel

How can we access the Dynam catalog with REXX?

book

Article ID: 242171

calendar_today

Updated On:

Products

Dynam for VSE

Issue/Introduction

  • You need to determine the status of a tape volser that is currently mounted on a drive.
  • You are using the VSE flavor of REXX.
  • You have the VOLSER but you need to access the catalog to see if it is a scratch tape, or an active tape.
  • If it is an active tape, you need the DSN of the tape, the job that created or mounted the tape, and the time of the last use.
  • There are subroutines that you can call from Cobol to do this, but I want to do this in REXX.

Is this something that can be done?

Is there an existing informational APAR concerning this?

 

Resolution

Dynam has no direct method to access the catalog with REXX.

You could write a REXX program that calls a Cobol or ALC program using the DYNACC and then return the data back to the REXX program.