× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Compiler Directives
  • From: Paul Tuohy <tuohyp@xxxxxxxxxxxxx>
  • Date: Tue, 16 May 2000 22:20:16 +0100

Hi Ron,

One technique is as follows:-

Main Program:-

D* Some D Specs
  /COPY MBRNAME
D* Some more D Specs

C* Some C Specs
  /COPY MBRNAME
C* Some More C Specs

The same member name is defined on both Copy Directives.

The Copy Member Contains

 /IF NOT DEFINED DCOPIED
 /DEFINE DCOPIED
D* D Specs to be Copied
 /EOF
 /ENDIF

C* C Specs to be Copied

HTH

Paul Tuohy

Klein Ron wrote:

> 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
> +---

+---
| 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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.