Page 1 of 1

DSECT macro to map VSAM ACB.

Posted: Sun Feb 21, 2016 11:21 am
by RyanFox
Hello,

I am looking for a mapping macro so as to avoid re-inventing the wheel. Pardon me if some fine manual has the answer. I actually looked in "DFSMS
Macro Instructions for Data Sets" but could not get something fruitful to go ahead.

Do you think there a DSECT macro that maps to VSAM ACB MACR1, MACR2, MACR3 and MACR4?

Re: DSECT macro to map VSAM ACB.

Posted: Sun Feb 21, 2016 7:04 pm
by Robert Sample
Have you looked at IFGACB in SYS1.MODGEN?

Google is your friend -- I found this by Googling acb macro and it was one of the early hits.

Re: DSECT macro to map VSAM ACB.

Posted: Mon Feb 22, 2016 2:14 pm
by RyanFox
Thanks Robert.

Looked at SYS1.MODGEN and then at SYS1.MACLIB. Just wondering why the macros are divided between these two libraries and why are not placed in one only?

Re: DSECT macro to map VSAM ACB.

Posted: Mon Feb 22, 2016 3:26 pm
by enrico-sorichetti
historic reasons,
SYS1.MACLIB content was thought for normal programming tasks

SYS1.MODGEN constains SYSTEM programming related macros.

once upon time its content was not even <installed> on the running system
and system programmers were forced to use SYS1.AMODGEN - the distribution library
and more than often - disk space constraints - the distribution libraries were not <online> but backed up to tape
with a bit of trouble for the sysprogs who needed them