OPS/MVS

 View Only

 Anyone knows how to get opsavgrec from OPSDYNAM INFO ?

Marcel van Ek's profile image
Marcel van Ek posted Aug 04, 2023 05:45 AM

I've been trying to use ADDRESS OPSDYNAM INFO DD(ddname) to find a datsets recordsize.

Acc to doc it should return variable OPSAVGREC , but whatever I use as input allocated on ddname, that variable is always blank.

Tried all kinds of datasets: dsorg PO//PO-E/PS/HFS/VS  , recfm FB/FBA/F/V/VB/VBA/U  but all return blank in OPSAVGREC

Other variables are correct (opsifcd';'opsercd';'opsmscd';'opsdsn';'opsdsorg';'opsvol';'opsmember';'opsdisp';'opsstorclas';'opsmgmtclas';'opsdataclas)

(OPSDSNTYPE only contains a value for HFS and PDSE btw, I'd expect at least SEQ, PDS  or VSAM  for those)

SO is this a bug or does it only work on a dataset type I did not try?

I figured to ask here before creating a case ;)

Marcel van Ek

Jason Fournier's profile image
Broadcom Employee Jason Fournier

Try putting INFO DD(ddname) in quotes "INFO DD(ddname)"

Hennie Hermans's profile image
Broadcom Employee Hennie Hermans

HI Marcel,

for the OPSDSNTYPE questions... Use the OPSDSORG variable.. This will deliver you the required value possibly..

Regards
Hennie Hermans

Marcel van Ek's profile image
Marcel van Ek

Sofar I've not seen a useful solution.. the quotes were there, OPSDSORG is not feasible.

Marcel van Ek's profile image
Marcel van Ek

Still no useful answer, So I think I'll just create an issue for this....