> I don't follow why this is a challenge.

Why might one want a "GENDCB" type function?

There are situations where one might like to make decisions at runtime that
with the "mainstream" approach can currently only be made at assembly time,
or at least require a careful reading of the DCB layout documentation and
modifying the DCB.

I had a requirement where I wanted to generate a situation-appropriate DCB
from a high level language.

Charles


-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]]
On Behalf Of Peter Relson
Sent: Tuesday, September 20, 2022 5:08 AM
To: [email protected]
Subject: Re: Assembler courses

Willy J wrote:
> I did eventually write a macro to handle DCBs from a 31-bit program

I don't follow why this is a challenge. For the normal access method
interfaces (such as those that were listed), AMODE 31 is supported. The only
thing that is important is the RMODE of the DCB. LOC=(24,64) on GETMAIN or
STORAGE OBTAIN is easy to code. Or RMODE 24 on your module if the module is
not reentrant and you don't mind the whole loadmod below 16M. Or RMODE=SPLIT
in a program object with suitable RMODE 24 CSECT(s).

Peter Relson
z/OS Core Technology Design

Reply via email to