As others have said, I think this is the intended behavior, and it has always worked that way...

A few other examples:

CALL PGM(*LIBL/SOMEPGM)

It doesn't matter if there are 4 programs named SOMEPGM in my library list, it only calls the first one.

Similarly:
DSPPFM FILE(*LIBL/SOMEFILE)

This doesn't display all files named SOMEFILE in my library list, it only displays the first one. And...

OVRDBF FILE(*LIBL/SOMEFILE) MBR(SOMEMBR)

This doesn't override to all files named SOMEFILE that have a member named SOMEMBR. (What would THAT to do the called program?) And it doesn't even override to the first SOMEFILE that contains SOMEMBR... It only overrides to the first SOMEFILE in the library list. If that first copy of SOMEFILE doesn't have a member named SOMEMBR, you get an error when you try to open the file.

So... this behavior of finding the first (rather than all) object in a library list is ubiquitous on IBM i. In general, it seems that WRKxxx commands typically show all, whereas any other type of command usually shows only the first one found.

Is this causing a problem for you? If so, we might be able to suggest an alternative or workaround if you describe the problem.


On 5/13/2011 12:26 PM, franz400@xxxxxxxxxxxx wrote:
V6R1 Display Object Description cmd
DSPOBJD OBJ(*LIBL/QCLSRC) OBJTYPE(*FILE)
returning only the 1st library found, not all in *libl.
Same if display or outfile, and same for *usrlibl.
Not my profile - wrkobj *libl/QCLSRC *file works fine.
Changing *libl to *allusr or *all in DSPOBJD works fine.
I see mult ptfs for DSPOBJD, but not this described problem.
Trying to get our OPS to open a ticket w/IBM (and get newer cume).
Has anyone else seen this?
Jim Franz


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.