Find source member

5 pts.
Tags:
AS/400 development
AS/400 source member
I am new to as400 i having one object(qap)But i having seven source member.Each source member having more than 500 program. My question how will i find in which source member i having that object(qap).plz answer my question

Answer Wiki

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

Search one Source file at a time
1. WRKMBRPDM FILE(MYLIB/QRPGLESRC)
2. Beside the first member type 25 (25=Find string )
3. Press F13 (Shift F1)
4. Press enter
5. Enter find … MYOBJECT (search is case in-sensitive — doesn’t matter the case you enter it in)
— option include position case sensitivity, print list , print records
6. Press enter and wait

Discuss This Question: 3  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
  • Lovemyi
    or simply go DSPPGM library/object and look at the program output and it will tell you which source file, library and member it was compiled from and what date and time. Then you can go right to that source file/member and look to see if the source file has changed since the object was compiled. Hope that helps. Lovemyi
    2,310 pointsBadges:
    report
  • philpl1jb
    Yes, I misread the request. Not where the object was used but which source program contains the object DSPOBJD and an 8 will show the source lib/file Typically RPGLE objects are in QRPGLESRC RPG objects in QRPGSRC FILES - Physical/Logical/Printer/Display in QDDSSRC CLP - QCLSRC CLLE - QCLLESRC Commands QCMDSRC COBOL QCBLSRC
    49,435 pointsBadges:
    report
  • TomLiotta
    ...simply go DSPPGM library/object and look at the program output and it will tell you which source file, library and member it was compiled from... Since ILE programs are not created from source and since most programs created in the past decade should be ILE, there is an excellent chance that a simple DSPPGM will be insufficient. ILE programs are created from modules -- modules are created from source. For ILE, the necessary command should be:
    DSPPGM  PGM( mylib/mypgm ) DETAIL(*MODULE)
    If object QAP is a program, then replace "mypgm" with QAP and replace "mylib" with the library that contains QAP. When the list of modules appears, take option 5(=Display description) for each module. Multiple modules means that multiple source members are involved. Further, if procedures are called that are in service programs, then even more source members will be involved. Also, if object QAP isn't a *PGM object, then DSPPGM won't be an appropriate command at all. We will need to know what kind of object it is. Also, since QAP begins with a "Q", there normally wouldn't be any source. The letter "Q" should be reserved for IBM objects. Generally it only causes problems when the object is a library, but IBM might use the name "QAP" at any unpredictable time. An application could behave very strangely without warning. 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