Why not have your own macro that exists in both z/os and VSE. It would set which MACLIB is being used into a global variable which mainline code or other macros could test.
John -----Original Message----- From: IBM Mainframe Assembler List [mailto:[email protected]] On Behalf Of Patrick Roehl Sent: Tuesday, July 03, 2012 7:23 AM To: [email protected] Subject: Detect z/OS or VSE at Assembly Time Is there a reliable method to detect whether an assembly is using the z/OS macro libraries or the VSE macro library? We run our assemblies on z/OS using the VSE MACLIB when wanting a VSE object deck. Any pointers or examples are appreciated.
