If you are running as LE enabled, you can use the CEE3INF callable service. See:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/CEEA31B0/2.2.5.10 As indicated there, if the value of bit 6 of sys/subsys tells you if you "Currently executing in a z/OS UNIX environment" -----Original Message----- From: IBM Mainframe Assembler List [mailto:[email protected]] On Behalf Of Scott Bennett Sent: Friday, August 20, 2010 10:10 AM To: [email protected] Subject: How can I best determine if assembler is running under batch or uss I am interested in hearing what others have done to determine if your assembler code is being called from a standard batch job step vs. being called from a USS shell command. My plan is to have a single assembler program that will either write his output to SYSOUT (using CEEMOU) or STDOUT (using BPX1WRT) based on some information that would indicate if the program is running under USS or not. Thanks in advance for you help.
