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



James,

I believe you want something like this:


      DEP        CTL(*ALWAYS) +             
                 PARM( +                    
                   (&USER *EQ QSYS) +       
                   (&USER *EQ QSPL) +       
                   (&USER *EQ QSECOFR) +    
                   (&USER *EQ QDOC) +       
                   (&USER *EQ QDBSHR) +     
                   (&USER *EQ QRJE) +       
                   (&USER *EQ QLPAUTO) +    
                   (&USER *EQ QLPINSTALL) +
                   (&USER *EQ QTSTRQS) +    
                   (&USER *EQ QDFTOWN)) +   
                 NBRTRUE(*EQ 0) +           
                 MSGID(CPD1617)             


Hope that helps,

Mark S. Waterbury

On Tuesday, April 27, 2021, 8:32:30 PM EDT, James H. H. Lampert <jamesl@xxxxxxxxxxxxxxxxx> wrote:





In defining a command's parameters, I see a number of ways to define
what values are specifically *allowed* for a parameter.

Is there a way to define several (in this case, ten) distinct values
*prohibited* for a parameter?

In this case, the parameter is a value to be passed to a SBMJOB's "USER"
parameter, and so it should accept either a valid SNAME or "*CURRENT,"
but reject the user profiles that are prohibited for that parameter of
SBMJOB.

And if I can reject it at the command level, rather than the CPP level,
then a wrong value will of course keep it from compiling in a CL
program, and make it fail a syntax check in SEU.

--
JHHL

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.