× 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: multi layer prob.
  • From: "John Bussert" <jbussert@xxxxxxxxxxx>
  • Date: Tue, 6 Oct 1998 10:59:45 -0500
  • Importance: Normal

hi, I'd like some help, if anyone is willing.

1-does CHKOBJ command only work in a CL program?
----
You can look at the command description to see the execution environmnet for
the specific command.  DSPCMD.  CHKOBJ can be executed in just about any
environment - interactive, batch, cl etc.

2-how does a CL pgm. execute a command that displays an error mssg.
for instance?
----
If you monitor for a specific (or generic CPF0000) message,you can send it
to the program message queue or to *EXT for the external message queue.

3-how does CALL QCMDEXC in rpg pgm. execute the DSPOBJD command so
that a temporary output file in QTEMP is created?
-----
QCMDEXC is the HLL interface to execute commands.  YOu must pass two parms,
the command string and a length.  As an example you may have an array with
the command DSPOBJD with all the parms filled out writing out the result to
a file in qtemp.  Then after executing, you do an open in your RPG program
and read it like normal.  You could also perform the CHKOBJ command the same
way.  Or, depending on what else you are doing in the RPG program, you may
just call a CL program that performs all the tasks, returns to the RPG and
you an open on the file (if it is there).  You can return an error condition
if the object does not exist.

basically i'm working on a pgm. that a user inputs an obj. name, lib.,
and obj. type.

if the obj. does not exist CL pgm activates error msg.

if the obj. does exist then the temporary file created in QTEMP by
CALL QCMDEXC (that activates DSPOBJD cmd)
should have some of its info displayed on an output screen.

If you want an example of this, let me know and I can send it directly to
you (send me you e-mail address).  Thanks

john

John Bussert
Swift Technologies, Inc.
jbussert@stecnet.com
847-289-8339


hope this makes sense.

Mohammad








* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  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.