× 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: which obj?
  • From: Bill Robins <brobins@xxxxxxxxxxxxx>
  • Date: Fri, 16 Oct 1998 07:48:36 +0100

Mohammad,

First, I would like to suggest that you not cross-post these questions to both
lists.  Please pick one (since most of your questions have been of an RPG 
nature, I
would recommend keeping to the RPG400-L list).

As has been mentioned in other posts, "yourfile" and "yourlib" are designators 
that
allow you to specify any name and library you wish.  Unfortunately, I don't 
think you
do "get this".  Using your assignment, let's go over what is happening.  Files 
are
containers of information of many types, programs are actions to perform.  Your
assignment is to run a command which will create a file which contains certain
information about objects in the specified library(s).  The program which you 
are
creating will then read this file and display the information contained in this 
file.

One suggestion was to create a dummy file so that your progam will compile, 
that is
one way -- but there is a better way.  If you have access to the "AS/400 
Programming
Reference Summary", there is a chapter that lists the file formats that are 
used by
all of the commands.  Under DSPOBJD you will find it uses a file based upon the
QADSPOBJ definition.  So, you can base all of your file specifications upon this
file.  The key point is that you will want to actually work with a copy of this 
file,
this is usually done through CRTDUPOBJ.

Bill


mohammad khan wrote:

> another question folks...
>
> my guideline for this assignment says to use DSPOBJD command to create
> a output file in my lib. to use it to compile my pgm.
>
> DSPOBJD  OBJ(yourlib/yourfile)
>          OBJTYPE(*file)
>          OUTPUT(*outfile)
>          OUTFILE(yourlib/tempfile)
>
> now, i think i get this. my only question is
> what do my directions mean by "yourfile"
>
> i have no idea which obj. it's talking about b/c
> the rpg pgm i wrote is of type RPGLE not of *FILE
>
> sincerely,
>
> Mohammad
>
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * 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          *
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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