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



David,

If you define a parameter as *nopass, every parameter after that must
also be defined as *nopass. Switch the parameters around (i.e. *omit
*nopass) and you will be able to accomplish what you're trying to do.

Ronald Moise
Programmer/Analyst
Phone: 1-727-431-8321
Email: rmoise@xxxxxxxxxxx

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Thursday, February 25, 2010 10:17 AM
To: RPG programming on the IBM i / System i
Subject: Re: CLP CALL RPG with optional parms

Wrap the RPG program with a command. You ever use the command CRTCMD?
Then use that command in your cl instead of CALL.


Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From: David FOXWELL <David.FOXWELL@xxxxxxxxx>
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Date: 02/25/2010 09:44 AM
Subject: CLP CALL RPG with optional parms
Sent by: rpg400-l-bounces@xxxxxxxxxxxx



Hi all,

How do I call an rpg from a clp when the rpg has 2 parameters with
option
(*nopass : *omit), and I just want to pass the second parameter?

Thanks

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.