There appear to be no RPG includes for these, as there probably would be if they were in QSYSINC. One can hope that IBM will move them there. Until then, you need to create your own data structures with the same layout as those in the C include. Then check at release changes to be sure that you will not get bit.

This is how it was in the good old days when APIs were first introduced - we were often on out own. Then IBM brought out the System Includes option and took major responsibility for their correctness.

You don't NEED to use the provided structures, if they exist - you CAN write your own. The calls just need to have parameters that match - and names, as someone else posted. But /COPY helps ensure backwards compatibility. And there is nothing lazy about using what is already there. ;-)

HTH
Vern

At 10:24 AM 3/29/2004 -0500, you wrote:
Thanks to those who already answered.

Carsten & Bruce: I am aware of the existence of the C include file but I
don't see what I could do with it. It does define the prototypes in C, but
when I use those procedures definition from an RPG pgm, I get this error:

CRTPGM PGM(TOBJ/UPDGRPF) BNDSRVPGM(QHTTPSVR/QZHBCONF)
Definition not found for symbol 'QZHBADDGROUPTOLIST'.
Definition not found for symbol 'QZHBCLOSEGROUPLIST'.
Definition not found for symbol 'QZHBFINDGROUPINLIST'.
Definition not found for symbol 'QZHBGETGROUPNAME'.
Definition not found for symbol 'QZHBGETNEXTGROUP'.
Definition not found for symbol 'QZHBOPENGROUPLIST'.
Definition not found for symbol 'QZHBREMOVEGROUPFROMLIST'.
Program UPDGRPF not created.

The only indication/instructions I could ever find in the "Information
center" about the QZHBCONF usage was this sentence:
"The group file APIs are in *SRVPGM QZHBCONF in library QHTTPSVR. ILE C
programs must include header file QHTTPSVR/H(QZHBCONF)."

Btw, I am reluctant to rewrite a program by my own when one already exists,
and an official one made by IBM that is. Why reinvent the wheel :-). My
other consideration is that, if IBM ever decides to change something to
those API's, using the service program would probably save me from updating
one that I would've done myself. Believe me, I am not only being lazy. I've
just finished writing 2 programs using validation lists API (one using the
RPG API's and the other using the C API's as external procedures). Why 2?
For sakes of experimentation using both sets of API's. Thats me :-)

JT: Basically, you would find the doc for those these API in the "HTTP
Server APIs" - (original) section but Group file APIs are independent of
HTTP Server type.

Best regards!


Simon Perez Administrateur/Programmeur IBM iSeries Le Groupe Option Retraite Inc. Tel: (514)861-0505 ext:257 Fax: (514)861-1976 Courriel: s.perez@xxxxxxxxx

____________________________________________________________
Le Groupe Option Retraite Inc. n'assume aucune responsabilité quant
à la confidentialité et l'intégrité du présent courriel en raison
des risques d'interception inhérents sur l'Internet. Pour cette raison,
toute opinion exprimée au terme des présentes, ne reflète pas nécessairement
celle du Groupe Option Retraite Inc.

Due to the security risks involved in sending information over the Internet,
Retirement Option Group Inc. cannot be held responsible for ensuring the
confidentiality and integrity of the present e-mail. For this reason, the opinion expressed
herein, do not necessarily reflect those of Retirement Option Group Inc.
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-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-2022 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.