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



Are you talking about command parameters where there can be 1 to n (or the
max specified on the command) of that value?

If so, you can use an RPG data structure like this:

PARM KWD(TOADDR) TYPE(*CHAR) LEN(256) MIN(1) +
MAX(10) CASE(*MIXED) PROMPT('To Address' 1)
-----
C *ENTRY PLIST
C PARM ToAddrDS
-------
D ToAddrDS DS
D NbrTo 1 2B 0
D ToAddr 256A DIM(10)

This is an example of an entry parm use to handle email addresses sent in,
from 1 to 10.

NbrTo contains the number sent (but still verify each one for blanks).
ToAddr Contains each of the addresses In the command the field is defined
as 256 characters.

if (NbrTo > 0);
for i = 1 to NbrTo;
if (ToAddr(i) <> ' ');
//do stuff
endif;
endfor;
endif;

Brad
www.bvstools.com


On Mon, Mar 30, 2015 at 3:16 PM, Bruce Vining <bvining@xxxxxxxxxxxxxxx>
wrote:

The information is there, but a bit scattered in terms of location (and,
unfortunately, not always consistent). If you want to send me the command
definition I'll tell you what the CPP gets.

Bruce

On Mon, Mar 30, 2015 at 11:19 AM, Jon Paris <jon.paris@xxxxxxxxxxxxxx>
wrote:

I cannot for the life of me find a simple explanation of how command
parms
are passed to the CPP. Apparently I’ve never had to handle variable
length
lists of things like qualified names when I’ve dealt with commands in the
past. Either that or it was so many years ago I have forgotten.

Anyone point me to useful IBM docs? The stuff I’ve found so far in the
Info Center is not that helpful.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

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




--
Regards,
Bruce
www.brucevining.com
www.powercl.com
--
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-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.