|
Main Program being compiled:
* some of your code goes here
/define DSpecs
/copy copymbr
/undefine DSpecs
* some more of your code
*
/define CSpecs
/copy copymbr
/undefine CSpecs
*
* the rest of your code goes here
The copy member would look like:
*
/if defined (DSpecs)
d MyVariable s 10a
d MyJunque s 10a
/endif
*
*
/if defined (CSpecs)
c eval MyVariable = MyJunque
/endif
Thats about all there is to it
----------
From: Klein Ron[SMTP:ron.klein@brctsg.com]
Reply To: MIDRANGE-L@midrange.com
Sent: Tuesday, May 16, 2000 9:32 AM
To: ''MIDRANGE-L'
Subject: Compiler Directives
Hi All,
With the big discussion last week about compiler directives and /COPY
statement with RPG and RPT I looked for some answers as to how I can combine
my D and C specs into a single source member.
I looked in the reference manuals for some examples or directions as to how
I could code the program to insert the appropriate sections in the right
spots. Sad to say I was unsuccessful in finding an answer.
Could someone show me an example as to how to get the specific sections
inserted into their appropriate areas in an RPGLE program.
TIA
Ron
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.