5 pts.
 Find 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

Software/Hardware used:
ASKED: October 22, 2008  9:55 AM
UPDATED: September 6, 2010  7:28 AM

Answer Wiki:
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
Last Wiki Answer Submitted:  October 22, 2008  3:05 pm  by  philpl1jb   44,070 pts.
All Answer Wiki Contributors:  philpl1jb   44,070 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

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 pts.

 

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

 44,070 pts.

 

…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

 107,735 pts.