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



-----Message d'origine-----
De : rpg400-l-bounces@xxxxxxxxxxxx
J.Beckeringh@xxxxxxxxxxxxxxxxxxxxxxxxxx

David,

Your program does not get a MODS from an RPG III program.
Program SP1 defines the MODS; it 'owns' the storage, so to
speak. SP1 passes a pointer to the storage to SP2; SP2 just
passes the pointer on to the RPG III program to do whatever
it is supposed to do. Because SP2 just passes the pointer,
the definition of the parameter in SP2 does not really matter
in this case (assuming SP2 does not do anything else with the
parameter).

Joep, does that mean I could have any character field instead of Ads in the prototype for SP2? The globalDS declaration is obviously an error.

Pgm RPGIV
Module1
D globalDS E DS EXTNAME(myFile) OCCURS(20)

SP1 B

CALL SP2 ( globalDS );

Module2
D globalDS E DS EXTNAME(myFile) OCCURS(20)

D SP2 PI
D ADs LIKE(globalDS)

C CALL RPGIII
C PARM ADs


Pgm RPGIII
IODS E DSMYFILE 20
C *ENTRY PLIST
C PARM ODS

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.