AS/400 command for searching for particular source of object

75 pts.
Tags:
AS/400
AS/400 commands
PGM
If we want to search the particular Source of an object, which command we prefer object may be any? Like PF, LF or PGM?
1

Answer Wiki

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

You could consider using DSPOBJD with DETAIL(*SERVICE).

But, You would need to DSPPGM  for ILE Program Objects.
Pradeep.

Discuss This Question: 7  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.
  • ToddN2000
    Are you looking to find where the source that created the object is or do you want tho scan the actual source code?
    133,740 pointsBadges:
    report
  • TheRealRaven
    DSPOBJD won't help for most *PGM objects in versions of the OS from the past 15 years or so. It also won't help for many (perhaps most) PFs and LFs.

    First, *PGM objects are not created from source under ILE. You need to look at the *MODULE objects to see information about the source for modules. The DSPPGM command will list modules in an ILE *PGM and indicate module source.

    Many PFs and LFs are now created as SQL TABLEs and VIEWs (or INDEXes). The DSPOBJD command won't help with those. You need to view source in the system database catalog. Best way to do that is through iSeries Navigator, drilling down into the Databases node.

    Many other object types will indicate source (if any source was used) with DSPOBJD DETAIL(*SERVICE).
    35,650 pointsBadges:
    report
  • mahalak
    I am asking Where source are created?
    75 pointsBadges:
    report
  • ToddN2000
    I would use the command Raven mentioned. DSPOBJD OBJ(MYOBJECT) OBJTYPE(*PGM) DETAIL(*SERVICE)
    133,740 pointsBadges:
    report
  • ToddN2000
    If you have a lot to check try dumping them to a file the use a query to search. DSPOBJD OBJ(MYLIB/*ALL) OBJTYPE(*PGM) DETAIL(*SERVICE) OUTPUT(*OUTFILE) OUTFILE(QTEMP/MY_OBJECTS)
    133,740 pointsBadges:
    report
  • TheRealRaven
    "I am asking Where source are created?"

    We don't know where your source is. You need to give us some actual details of an actual object so we can say if source might exist and how to find it on your system.

    Different sites have different standards. Most source will be in "source files", other source might be in some streamfile in a directory, and still other source might be in the system database catalog.
    35,650 pointsBadges:
    report
  • ToddN2000
    Another thing, is this your own code? If you purchased a software package, sometime you will only get their object. You will not get the source code.
    133,740 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.

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

Following

Share this item with your network: