× 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: HipszerT@xxxxxxx
  • Date: Tue, 6 Oct 1998 08:27:46 EDT


There are plenty of people here willing to "help".  From your questions, I am
guessing you are a novice to the AS/400.  Maybe you should spend some time in
training before you attempt projects.

BTW,  you would only need a CL pgm, display file, and a query to accomplish
your goal.  You do not need an RPG also.  Actually, you could get away with
only a CL and a CMD, but the easier way right now is probably via the CL only.
Look up SNDRCVF, DCLF, and RUNQRY commands.  I am assuming you want to be
selective about the DSPOBJD info being displayed, which is why you want to do
an output file instead of just displaying it to the screen.

Good Luck.


Tony Hipszer

In a message dated 10/6/98, 3:06:55 AM, RPG400-L@midrange.com writes:
<<hi, I'd like some help, if anyone is willing.

1-does CHKOBJ command only work in a CL program?
2-how does a CL pgm. execute a command that displays an error mssg.
for instance?
3-how does CALL QCMDEXC in rpg pgm. execute the DSPOBJD command so
that a temporary output file in QTEMP is created?

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.

hope this makes sense.

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

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2023 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.