Don't know how to do it with HLASM. But you can run almost anything through the 
C preprocessor and have it produce an "output deck" to pass on to another step. 
I'm not sure if you can run the C preprocessor without having C licensed or 
not. No, I've not tried it in z/OS.

--
John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets®

9151 Boulevard 26 • N. Richland Hills • TX 76010
(817) 255-3225 phone •
[email protected] • www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets® is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. –The Chesapeake Life Insurance 
Company®, Mid-West National Life Insurance Company of TennesseeSM and The MEGA 
Life and Health Insurance Company.SM



> -----Original Message-----
> From: IBM Mainframe Assembler List
> [mailto:[email protected]] On Behalf Of Patrick Roehl
> Sent: Thursday, November 17, 2011 11:30 AM
> To: [email protected]
> Subject: Conditional “Assembly” for COBOL?
>
> I'd like to be able to build various versions of a COBOL
> program by doing
> something like a conditional assembly.  Has anyone does
> anything like this?
>
> Is it possible to add AIF statements to non-assembler source,
> "assemble> it," and get the constructed source?  Obviously trying to
> assemble the
> result would be pointless, but can the constructed source be captured
> somehow?
>
> I've considered doing this with Rexx, but wonder if someone
> else has tried
> to solve this.  All suggestions are welcome.
>
>

Reply via email to