Find the Source file

195 pts.
Tags:
AS/400
Which command is used to identify the source physical file and Library of an object?

Software/Hardware used:
AS400

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Pradeep.

Discuss This Question: 8  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Sasikumarr
    DSPOBJD & WRKOBJ is wont give the source PF and Library details for *PGM object.
    195 pointsBadges:
    report
  • Sasikumarr
    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?????
    195 pointsBadges:
    report
  • Sasikumarr
    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??????.
    195 pointsBadges:
    report
  • CharlieBrowne
    Not all objects have source. DSPPGM will give the information for a *PGM object.
    41,380 pointsBadges:
    report
  • TomLiotta
    ...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
    125,585 pointsBadges:
    report
  • pdsathishkumar
    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,790 pointsBadges:
    report
  • Sasikumarr
    I think WRKOBJPDM LIB(Your_Lib) OBJ(Object_Name) OBJTYPE(*file/*pgm) will also work
    195 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following