× 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 Processing
  • From: "Denis Robitaille" <DRobitaille@xxxxxxxxxxxx>
  • Date: Fri, 13 Jul 2001 11:47:26 -0400

If you create a user option in pdm (F16), you can trap the values of the 
element chosen by using special variables (&n for the member name, &s for the 
member type ...) The complete list is available when you press help while 
defining a user option. 

You could then do something like this:

option XX
Command : CALL XX (&n &s &f .....)

This way, the XX program has all the information on the member name, type, 
whether to submit to batch ...

With this information, you can construct the compile instruction the way you 
want and put the result in a string variable.

If you want to prompt it (and possibly change some values), put ? in front of 
the string variable. Then do this

CALL       PGM(QCMDCHK) PARM(&cmd 300)  
MONMSG     MSGID(CPF6801) EXEC(GOTO CMDLBL(ERROR))

(I suppose a maximum length of 300 characters)
 
This will prompt the command and you can change it.

To run it do

 CALL       PGM(QCMDEXC) PARM(&cmd 300)  

or submit the previous call.

hope this help

Denis Robitaille
Directeur services techniques
Cascades Inc
819 363 5187
fax 819 363 5177


>>> bmeecham@weichertrealtors.net 07/13/01 10:00am >>>
Hello all 
I would like to process a command the same way that PDM does.  Take an option, 
display the command for modification, submit (or process interactively).  Using 
the PDM options to determine if the command should be submitted or not is not 
important.  The part that I want to be able to do is to show the command and 
then submit it.  

There are multiple IS departments and each uses their own standard parameter 
settings for the create commands.  I'd like to use one option that will detect 
the type of object being generated, call the appropriate command with the 
parameters already set to the appropriate defaults.  I can do this with no 
problem interactively but I can't get the command once displayed to submit to a 
batch job.  I've tried using sbmjob and prompting that with the create filled 
in without success.  

Any suggestions?
TIA
Bill

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