|
Michael, There is a 2 byte binary value preceding the list data that indicates how many list elements have been passed. Use that number to process only that number of elements. -mark
Yup...that's what I'm doing, but I'm having a problem when it's a list parameter. The single parameters look fine. It's like when I do this: SAVRSTOBJ OBJ(OBJ1 OBJ2) LIB(SOMELIB) RMTLOCNAME(SOMEREMOTE) The OBJ parameter (which can have multiple values) seems to have junk in the unused positions in the list. The LIB and RMTLOCNAME, being single values, don't seem to have the same problem. On 10/20/06, Richard ECUYER <recuyer@xxxxxxx> wrote:Not sure if this is really what you are looking for but usually, specify the parmnam and it's value like this : WRKOUTQ OUTQ(MYVALUE) ... OUTQ is the parm name, MYVALUE is the parm value... ----- Original Message ----- From: "Michael Ryan" <michaelrtr@xxxxxxxxx> To: "Midrange Systems Technical Discussion" <MIDRANGE-l@xxxxxxxxxxxx> Sent: Friday, October 20, 2006 5:42 PM Subject: Calling Command with ParametersI'm constructing a command in an RPG program. I'm getting junk in the command processing program's entry paramters for multiple elementcommandparms. It reminds me of the 32 byte CL program problem - in fact,that's whyI front-ended the CPP with a command. So, my question is - if I have a command that takes a list for a parameter, how do I construct thecommand?Thanks... -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailinglistTo 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.-- 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.-- 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 mailing list archive is Copyright 1997-2025 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 copyright@midrange.com.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.