PARM='TRAP(OFF)/' stops LE from gaining control, and will percolate the
original S0C1 up. Depending on the language, it could instead be specified
as:

PARM='/TRAP(OFF)'

(that is, play with the slash, it's either at the beginning or the end.)

David Logan
Manager of Product Development, Pitney Bowes Software, Inc.
http://centrus.com
4750 Walnut St, Suite 200
Boulder, CO  80301
W: (720) 564-3056

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of McKown, John
Sent: Monday, April 28, 2008 1:01 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: Language Enviroment HLASM question.

> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Steve Comstock
> Sent: Monday, April 28, 2008 1:19 PM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: Language Enviroment HLASM question.
> 
> McKown, John wrote:
> > Is there any reason that anybody can think of for making an 
> ASSEMBLER
> > program an LE main routine, other than if it invokes some 
> LE subroutines
> > or COBOL (or other LE-enabled language) subroutines? What 
> about if it
> > uses the BPX... subroutines to do UNIX work?
> > 
> > More curious than anything else.
> 
> Assembler programs do not need to be LE for calling BPX routines.
> But one nice side effect of making an Assembler program LE-conforming
> is that it can then call C functions directly (you do not need to
> invoke a C program that then calls the C functions you're after).
> So printf, scanf, and so on can be invoked directly from the
> Assembler program. But you don't want the tail wagging the dog,
> it's always important to clearly define what the program is to
> be doing.
> 
> 
> <I won't even put an ad here ;-) />

I hadn't even considered using C language subroutines.

I do have one thing that I don't like. My "diagnostic" abends result in
LE getting control and "messing around" with the environment. It is
weird to see a U4087 on my job when I __know__ that I caused an S0C1. I
wish that I knew how to perculate the original abend code up to the JCL
level. Everything seems to come out as a U4087 (S0C1, S0C3, S0C7, etc).

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to