|
He first two positions on the &PARM1 field will contain the number of entries passed to the program. You must use that figure, multiply it by the length of your value (10 in this case) and then use %SST to extract the values passed to your CL program. Look at %BIN to access the first two positions at an Integer value. -Bob Cozzi www.RPGxTools.com If everything is under control, you are going too slow. - Mario Andretti -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of ganeshkumar.murugesan@xxxxxxxxx Sent: Monday, June 13, 2005 11:09 AM To: rpg400-l@xxxxxxxxxxxx Subject: MAX keyword on PARM Command The following code (It is the CMD source) works fine except for the fact that if the user enters only 4 or 5 values for the parameter PRJ1, the remaining part of the parameter list contains junk value. PARM KWD(PRJ1) TYPE(*CHAR) LEN(10) DFT(*BLANKS) + MIN(0) MAX(10) PASSVAL(*DFT) + PROMPT ('Project ID') In the Command processing program for this command, I've specified the parameter as DCL VAR (&PARM1) TYPE(*CHAR) LEN(100) VALUE(*BLANKS) What should I do to avoid junk values inside the parameter in my CPP? I know I'm missing out something silly, but couldn't figure it. Thanks, Ganesh Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or Mailadmin@xxxxxxxxx immediately and destroy all copies of this message and any attachments.
As an Amazon Associate we earn from qualifying purchases.
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.