|
You need the DFT() keyword for non-required parms.--
-Matt
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Robert Rogerson
Sent: Friday, July 30, 2021 12:41 PM
To: Midrange Systems Technical Discussion
<midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Restricting user command values
Hi all, this has me stumped. I have this source for a command
CMD PROMPT('SBT BIMBO Refresh ')
PARM KWD(DATE) TYPE(*CHAR) LEN(8) MIN(0) +
DFT(*CURRENT) PROMPT('Date to process +
(YYYYMMDD)')
PARM KWD(ITEM) TYPE(*DEC) LEN(6 0) MIN(0) +
DFT(0) PROMPT('Item to process')
PARM KWD(STORE) TYPE(*DEC) LEN(3 0) MIN(0) +
DFT(0) PROMPT('Store to process')
PARM KWD(VENDOR) TYPE(*DEC) LEN(5 0) MIN(0) +
DFT(0) PROMPT('Vendor to process')
PARM KWD(MODE) TYPE(*CHAR) LEN(1) MIN(1) +
VALUES('Y' 'N') RSTD(*YES) +
PROMPT('Update Production (Y/N)')
PARM KWD(SENDEDI) TYPE(*CHAR) LEN(1) MIN(1) +
VALUES(Y N) RSTD(*YES) +
PROMPT('Send EDI Sales (Y/N)')
PARM KWD(CLSBSLP) TYPE(*CHAR) LEN(1) MIN(1) +
VALUES(Y N) RSTD(*YES) +
PROMPT('Clear SBTSALESP')
If I call the command from the command line SB0125CMD DATE(20210708)
ITEM(883082) the cpp is called.
I thought the only valid values for the last three parameters would be
Y or N and since MIN(1) is specified it could only be Y or N.
But the CPP is being called and the last three parameters are blank.
How do I restrict the last three parms to only Y or N and not blank?
Thanks,
Rob
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit:
https://urldefense.com/v3/__https://lists.midrange.com/mailman/listinf
o/midrange-l__;!!O6xM9Yim9Yk!q0_guKzEKkRCAwtHKUkPZhslTMwOSzfNWHO2R_Xjx
jZwUj7MSknNKklqzNC2wphnrEeT$ or email:
MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://urldefense.com/v3/__https://archive.midrange.com/midrange-l__;
!!O6xM9Yim9Yk!q0_guKzEKkRCAwtHKUkPZhslTMwOSzfNWHO2R_XjxjZwUj7MSknNKklq
zNC2wp5Ttu8z$
.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://urldefense.com/v3/__https://amazon.midrange.com__;!!O6xM9Yim9Y
k!q0_guKzEKkRCAwtHKUkPZhslTMwOSzfNWHO2R_XjxjZwUj7MSknNKklqzNC2wsylEHdd
$
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit:
https://urldefense.com/v3/__https://lists.midrange.com/mailman/listinf
o/midrange-l__;!!O6xM9Yim9Yk!tCq1w-Rw0iTtYMQhBRE57Gedgk_khpE3ciLnGmoaA
EzLgOm-eg38m04G9c7lo0OyX39l$ or email:
MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://urldefense.com/v3/__https://archive.midrange.com/midrange-l__;!!O6xM9Yim9Yk!tCq1w-Rw0iTtYMQhBRE57Gedgk_khpE3ciLnGmoaAEzLgOm-eg38m04G9c7lo1UwJMJT$ .
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://urldefense.com/v3/__https://amazon.midrange.com__;!!O6xM9Yim9Y
k!tCq1w-Rw0iTtYMQhBRE57Gedgk_khpE3ciLnGmoaAEzLgOm-eg38m04G9c7loyHgSZjm
$
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 [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.