130 pts.
Find the Source file
Which command is used to identify the source physical file and Library of an object?

Software/Hardware used:
AS400
ASKED: December 15, 2011  6:32 AM
UPDATED: March 17, 2012  6:20 AM

...wont give the source PF and Library details for *PGM object.

If the *PGM was created from source, then DSPOBJD will show source details.

However, ILE programs are not created from source. They are created by binding *MODULE objects together. A *MODULE can be viewed with DSPOBJD to find a reference back to its source.

A *PGM that is compiled for OPM will show a source reference with DSPOBJD.

Tom

ANSWERED:  Dec 15, 2011  7:07 PM (GMT)  by Sasikumarr

You can be able to do it using DSPOBJD Command.
Select *SERVICE for DETAIL keyword.
<pre> Display Object Description (DSPOBJD)

Type choices, press Enter.

Object . . . . . . . . . . . . . > TESTPF Name, generic*, *ALLUSR…
Library . . . . . . . . . . . *LIBL Name, *LIBL, *USRLIBL…
Object type . . . . . . . . . . > *FILE *ALL, *ALRTBL, *AUTL…
+ for more values
Detail . . . . . . . . . . . . . > *SERVICE *BASIC, *FULL, *SERVICE
ASP device: </pre>

It will display the Details of the Object along with Source details.

<pre> Display Object Description – Service
Library 1 of 1
Object . . . . . . . . . . . . . . . : TESTPF
Library . . . . . . . . . . . . . : TSTLIB
Library ASP device . . . . . . . . . : *SYSBAS
Library ASP group . . . . . . . . . : *SYSBAS
Type . . . . . . . . . . . . . . . . : *FILE

Source file . . . . . . . . . . . . : QDDSSRC
Library . . . . . . . . . . . . . : TSTLIB
Member . . . . . . . . . . . . . . . : TESTPF
Attribute . . . . . . . . . . . . . : PF </pre>

You can select the same using ‘WRKOBJ TESTPF’ and then Option ’8′ + F4.

Last Wiki Answer Submitted:  December 15, 2011  8:31 am  by  deepu9321   3,370 pts.
Latest Answer Wiki Contributors:  deepu9321   3,370 pts.

Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

DSPOBJD & WRKOBJ is wont give the source PF and Library details for *PGM object.

130 pts.

DSPOBJD & WRKOBJ works only for *File object. It wont give the source pf of all other objects like *PGM ,*DTAARA, *DTAQ, BNDDIR. So i m asking about a command that is useful to find out the source PF for all objects supported by iSeries? Is it possible?????

130 pts.

DSPOBJD & WRKOBJ is useful for some object type like *file, *Menu, etc . But it wont give the source PF for some objects like *PGM, *DTAARA, *DTAQ, *BNDDIR. Is it possible to find the Source PF of all object types in iSeries by using a single command??????.

130 pts.

Not all objects have source.
DSPPGM will give the information for a *PGM object.

32,855 pts.

if you want, how many source physical file using WRKOBJPDM

Library . . . . . . . . . . . . LIB LIBNAME
Object . . . . . . . . . . . . . OBJ *ALL
Object type . . . . . . . . . . OBJTYPE *ALL
Object attribute . . . . . . . . OBJATR ‘PF-SRC’

otherwise, you want source physical file of object.. use DSPOBJD command

Object . . . . . . . . . . . . . . . : PFNAME
Library . . . . . . . . . . . . . : LIBNAME
Library ASP device . . . . . . . . . : *SYSBAS
Type . . . . . . . . . . . . . . . . : *FILE

Source file . . . . . . . . . . . . : DATABASE — SOURCE PHYSICAL FILE NAME
Library . . . . . . . . . . . . . : SATHISH551

3,740 pts.

I think WRKOBJPDM LIB(Your_Lib) OBJ(Object_Name) OBJTYPE(*file/*pgm) will also work

130 pts.

So i m asking about a command that is useful to find out the source PF for all objects supported by iSeries? Is it possible?

No, it’s not possible.

It’s not possible because most objects aren’t created from source. A data area, for example, doesn’t have “source”. It is directly created by executing a CRTDTAARA command. Source isn’t needed.

An ILE program object can have dozens (or more) modules that make up the program. Each module is likely to have different source. So source for a *PGM object doesn’t make much sense. You look at the modules instead.

Tom

108,055 pts.