× 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.



Awesome,
Thanks.

Ron Power
Programmer
Information Services
City Of St. John's, NL
P.O. Box 908
St. John's, NL
A1C 5M2
709-576-8132
rpower@xxxxxxxxxx
http://www.stjohns.ca/
___________________________________________________________________________
Success is going from failure to failure without a loss of enthusiasm. - 
Sir Winston Churchill




AGlauser@xxxxxxxxxxxx 
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
2006/12/07 03:16 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc

Subject
Re: /copy question






Hi Ron,

The problem in the code you posted is that your /copy member contains an 
H-spec.  /copy members have to preserve the order of specs, so if you put 
an F-spec above the copy member you posted, you have F before H, a no-no. 
Similarly, if you put the /copy before the F-spec, you have D-specs 
preceding an F-spec, also a no-no.

If you really need to include the H-spec, you can either use conditional 
directives /if DEFINED in your /copy member, and /define in your source, 
but then you have to do something like:

in the copy:

/if DEFINED HSPEC
H ....
/endif

/if NOT DEFINED HSPEC
D specs ...
/endif


in the source:
/define HSPEC
/copy copymember
/undefine HSPEC

...

/copy copymember

Alternatively, if the H-spec is not tightly related to the copy member, 
but just some H specs you use frequently, you could have two different 
copy members:

(source file)

/copy HSPECCOPY

F-specs

/copy Protypes

// more D-specs and code.


HTH,
Adam

#####################################################################################
Attention:
The above message and/or attachment(s) is private and confidential and is 
intended 
only for the people for which it is addressed. If you are not named in the 
address 
fields, ignore the contents and delete all the material. Thank you. Have a 
nice day.

For more information on email virus scanning, security and content
management, please contact administrator@xxxxxxxxxxxx
#####################################################################################

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.