× 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: Martin Rowe <martin@xxxxxxxxxx>
  • Date: Fri, 13 Jul 2001 16:03:34 +0100
  • Organization: dbg400

On Friday 13 July 2001 3:00 pm, Bill Meecham wrote:
> 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

Hi Bill

You can use the QCMDCHK API to prompt the command you've initally set up. 
That returns your fully prompted command, amended as necessary. It's easy 
then to drop that variable into the CMD() parm of SBMJOB. QCMDCHK takes two 
parms - command string and length, just like QCMDEXC.

Regards, Martin 

-- 
martin@dbg400.net / jamaro@firstlinux.net
http://www.dbg400.net  DBG/400 - DataBase Generation utilities 
Open Source test environment tools for the AS/400 / iSeries and 
miscellaneous database & spooled file management commands.
+---
| 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 ...

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.