No argument.
An alternative is to place the xSECT statement before the macro invocation:
For the real storage:
MYPARMS CSECT
PARMMAC FOO=YES,BAR=NO
Everywhere else:
MYPARMS DSECT
PARMMAC FOO=YES,BAR=NO
Charles
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Seymour J Metz
Sent: Sunday, February 3, 2019 12:34 PM
To: [email protected]
Subject: Re: External dsect
It's good form to write a macro that, with an appropriate parameter, will
generate either the CSECT or the DSECT.
--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of
Peter Relson <[email protected]>
Sent: Wednesday, January 30, 2019 8:08 AM
To: [email protected]
Subject: Re: External dsect
I do agree with all the posts that you should not do a LOAD in an exit.
I'll quibble about the very title of this post. I'd say that there is no
such thing as an external dsect.
A dsect is just a mapping. What you are talking about is simply an
external CSECT of DC's for which you provide a DSECT to map.
The OP of course knows how to initialize a csect.
A DSECT could be used to help guide where the DC's go if wanted (such as
by using ORG the_start+the_field_in_the_dsect). And of course the DSECT
would be used to interpret the CSECT.
If you're going to go the route of an initialized CSECT that a customer
assembles, then you should probably provide a macro within the CSECT so
that the customer is updating the macro (and the macro knows how to set
the fields).
Once the CSECT is initialized, there is only the question of whether it is
bound with your code (and thus addressable by v-con) or is located
dynamically by your code.
Peter Relson
z/OS Core Technology Design
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN