did you try using the parameter BNDSRVPGM(QHTTPSVR/QZHBCGI) instead?
For me that did the trick.

Good luck,

Henk Schipper.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Pete Clifford
Sent: dinsdag 7 september 2004 14:56
To: rpg400-l@xxxxxxxxxxxx
Subject: getenv API and previous compiler suport


Has anyone run into problems using the "getenv" API to retrieve environment
variables when compiling for previous releases?

I have some code which uses getenv and which is compiled on V5R2M0 with
TGTRLS(V4R5M0).

It runs fine on V5R2M0 and above.

On V4R5M0 I get:

     Message ID . . . . . . :   MCH4437       Severity . . . . . . . :   40
     Message type . . . . . :   Escape
 Date sent  . . . . . . :   07/09/04      Time sent  . . . . . . :
10:15:31

 Message . . . . :   Program import not found.
 Cause . . . . . :   The calling program (program name) refers to a
procedure or
   data export from service program QP0ZCPA which does not exist. The
calling
   programs refers to export-ID X'00000031', the service program defines
only
   X'0000002F' exports.
 Recovery  . . . :   Recreate the calling program.
 Technical description . . . . . . . . :   The service program has been
changed
   in an incompatible manner since the time the calling program was created
and
   thus bound to the service program. Recreate the calling program.


It looks to me as if getenv was previously exported from QC2UTIL2 but is now
in QP0ZCPA and that consequently compiling for V5R4M0 won't work.

Anyone got any suggestions how I might retrieve an environment variable in a
way that can be compiled for V4R5M0 and above, with a single set of
executables?

Pete

Peter Clifford
ariadne software
www.ariadnesoftware.co.uk




--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
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 ...

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.