Hi,

What i use, is defined a file and use an external data-structure based on
this file.
I also use a name associated with the PGM name (PGMA --> PGMA_P is its
parameters)
so you can esay know if a PGM as a parameter and because the definition is
an object describe the parameter for documantation or other.

----- Original Message ----- 
From: "Booth Martin" <booth@xxxxxxxxxxxx>
To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
Sent: Thursday, October 27, 2005 6:05 PM
Subject: Re: Passing Parms


The technique I prefer is to design a data structure that contains the
fields that are commonly needed across an application and then create an
externally described data structure that includes them.  Then, any changes
in parms need be made in one place only.
 Booth Martin

I also have much better luck with data structures.
I have a couple of programs similar to yours and in those I passed one
long string containing all 4 values. In the sender I lump all 4 into on
char variable and in the receiving program I use %SUBST to get each
individual item, if it then needs to be numeric on that side I just use
MOVE.

    Dave Reiher



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.