Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!ucbvax!@rice.edu:SXRJC@ALASKA.BITNET From: @rice.edu:SXRJC@ALASKA.BITNET (ROBERT J CONCANNON) Newsgroups: comp.lang.asm370 Subject: abend macro Message-ID: <8910060228.AA18981@brazos.rice.edu> Date: 5 Oct 89 19:20:58 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: IBM 370 Assembly Programming Discussion List <@rice.edu:ASM370%UCF1VM.BITNET@ricevm1.rice.edu> Distribution: inet Organization: The Internet Lines: 10 we have a need for a small subroutine callable from cobol that will produce programmer-specified user abends (and abend codes, u4095 etc) without hardcoding the specific abend code in the source. in other words, i would like to pass the required value at runtime to a subroutine containing the #abend macro. i am only a rudimentary assembler programmer, and the only ways i see to do this are definitely 'hokey'. the problem is that the macro expansion requires a non-relocatable variable (it embeds the abend code inline in the machine code) and anything i want to pass is relocatable. is there an easy way to circumvent this restriction? thanks, bob concannon, university of alaska, fairbanks