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


  • Subject: Re: Entry Parameters
  • From: bmorris@xxxxxxxxxx
  • Date: Thu, 20 Jan 2000 16:17:18 -0500




>Date: Thu, 20 Jan 2000 08:10:15 -0800
>From: Jim Langston <jlangston@conexfreight.com>
>
>Okay, this is doable, although I could not expect my users to
>know how to put in a negative number, in this case it doesn't
>matter since there will never be a negative number for the
>parameters.
>

Shriek!  Users calling a program with complex parameters like this?
If you really want your users to call this as a program, define
all the parameters as packed(15,5) and copy them to other variables
in the program.  But you'll find your users getting annoyed at having
to remember the order of the parameters - I would say that a program
can be called by "users" from the command line without a command
interface with a maximum of 1 parm.

>Hmm... this being the case, it seems that any number passed as
>a parameter to an RPG program will always have to be passed
>as a character?  I attempted to do a CMD for the program, but
>it failed with same error, but at that point it is possible that I had
>the variables defined differently that 15P 2.

Change the parameters in the program to be packed.  Then the command
should work.  With a command interface, you aren't restricted to
15P 5 - just define them as TYPE(*DEC) LEN(2 0) etc.

Barbara Morris


+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.