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



Simon,

First,   QAHSTDS is defined in my GEMAIL procedure.  I do realize that's
what the compiler is fussing about, but I don't want it to.  I'm just trying
to compile GIFPRINT.

The GEMAIL procedure is the last one that I added.  I then added GTXTMSG and
got the same error I get on GIFPRINT, so I was just backing up, trying to
get GIFPRINT to compile again.
So, I guess that's why I'm trying to use the /define stuff.

Second.  Your correct on this.  I just copied this from an example I
found(not that I really understood it) so this was just a typo.

Third.  I don't know why all this crap.  Again.  Just copied from an example
I found somewhere.

Basically I had this all working until I added Gtxtmsg.  Now it doesn't like
QAHSTDS.  So I want to prevent bringing in the prototype for GEMAIL when I
don't need to.

Can you explain this to a simple minded dolt like me.

Thanks

Mike

 -----Original Message-----
From:   Simon Coulter [mailto:shc@flybynight.com.au]
Sent:   Thursday, April 25, 2002 9:00 PM
To:     rpg400-l@midrange.com
Subject:        Re: help with compiler directives.


Hello Mike:

Firstly, where is LIKE(QAHSTDS) defined?  That's what the compiler is
really complaining about.  It can't define QAHSTDSP if the field it is
supposed to be like cannot be found.

Secondly,   /If Defined( CopyPValidCat )
should probably be
          /If Defined( PValidCat )

Thirdly, why all this crap?

 /Define PValidCat
 /Define PUsrSec
 /Define GIfPrint
 /Define GEmail
 /Define GTxtMsg

These are conditioning prototypes only. They don't occupy program space.
Forget conditional directives around these prototypes and just bring them
in anyway.  You are increasing the complexity with no gain.

Regards,
Simon Coulter.

--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists
   http://www.flybynight.com.au/

   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175   mailto: shc@flybynight.com.au   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.