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



Is this the only parameter on the command? Or does it appear after some
others?

In a command source listing, all required parameters must be listed
before any optional parameters. Use the prompt sort order to determine
the order they are presented on screen.

The compile listing will say CPD0263 "Required parameter not allowed
after optional parameter. Optional parameter assumed." If you list the
parms "out of order".

Example. Notice the sorting option on the prompt parameter. Required
parameters are entered first in the source listing.

CMD
PARM KWD(THREE) TYPE(*UINT4) RANGE(001 999) +
MIN(1) PROMPT('Some int' 2)
PARM KWD(SOMEPARM) TYPE(*CHAR) LEN(1) DFT('Y') +
PROMPT('Some char' 1)

How it is prompted:

(MYCMD)

Type choices, press Enter.

Some char . . . . . . . . . . . 'Y' Character value
Some int . . . . . . . . . . . . __________ 001-999

Bottom
F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this
display
F24=More keys
Parameter THREE required.


Loyd Goodbar
Business Systems
BorgWarner Shared Services
662-473-5713

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Dan
Sent: Tuesday, June 03, 2008 11:55 AM
To: Midrange Systems Technical Discussion
Subject: Re: Command programming

On Tue, Jun 3, 2008 at 12:18 PM, Wilt, Charles <WiltC@xxxxxxxxxx> wrote:

And a new wrinkle: Even though I've specified MIN(1), I can prompt /
run
the command without entering a value for the parameter. I thought
MIN(1)
forced a value. Is there another command definition keyword I'm
missing?



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.