> Date: Thu, 20 Oct 2011 11:10:48 -0700
> From: [email protected]
> Subject: Conditional assembly test for current AMODE
> To: [email protected]
> 
> Is there a way to test what AMODE is in effect for the current CSECT?
> Such a test would be valuable to allow a macro to expand differently based on 
> the result, particularly if AMODE 64.


with all of the usual caveats about it being a bad idea... there's (wisely) no 
system variable for it, but if you want to know what (if anything) was coded, 
you could try to OPSYN the AMODE statement to something else like AMODEX and 
create an AMODE macro to capture whatever was coded and reflect that in some 
GBLA or GBLC variable and then reissue the AMODEX statement from within the 
macro. 
NOTE: I have not tried this with AMODE, but I have used OPSYN extensively 
elsewhere. Give it a shot. Worst case you'll just get an assembly error. 
Did I mention I thought it a bad idea?
CC                                        

Reply via email to