× 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: Command parameters & validity checkers
  • From: "Pytel, Alexei" <pytela1@xxxxxxxxxxxxxxxx>
  • Date: Thu, 17 Dec 1998 19:17:27 -0000


In general case, sequence of parameters passed to CPP is not related to
how they are prompted. This is rarely the case with user-defined
commands, but it is very common with IBM commands.

There's a freeware tool RTVCMDSRC, which I found somewhere, which can
retrieve source for command description.

But I happen to know about CHGJOB, because I have written VCP for CHGJOB
once.

RUNPTY is parameter number 22 - it is of type *INT2. and TIMESLICE is 23
- of type *INT4.

Value 0 means "no change".

Also be aware that CPP for CHGJOB takes variable number of parameters.
Value *SAME in CHGJOB normally means that corresponding parameter is
simply omitted.
So you will have to use ILE for VCP (to handle variable number of
parameters), and you will have to chack for omitted parameters.

    Best regards,

          Alexei Pytel



> -----Original Message-----
> From: Jim Knight [SMTP:jknight@rei.com]
> Sent: Thursday, December 17, 1998 5:37 PM
> To:   'Midrange Users list'
> Subject:      Command parameters & validity checkers
> 
> I am having a little brain fade......
> I am trying to write a command validity checker against the
> CHGJOB command to restrict use of the RUNPTY and TIMESLICE
> parameters to specific groups.  2 things...
>       - Are command parameters passed to the checker in the
>         sequence of the command prompt or some other sequence
>         (what if "Order prompt is displayed" is active??)
>       - I can not seem to find any documentation as to the
>         sequence of command parameters or is it "what you
>         see is what you get"?
> 
> Any help is appreciated
> 
> Jim Knight
> IS/Senior Systems Programmer
> Recreational Equipment, Inc.
> jknight@rei.com
> 
> 
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
> MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
> david@midrange.com
> +---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-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.