HI can i change the object attribute for a CLLE program to CLP (as in the case with a CLP we can change it to CLLE). SOmebody plz tell me how we can do that?
Software/Hardware used:
IBM i,V5R4
ASKED:
April 12, 2010 10:40 AM
UPDATED:
April 16, 2010 6:00 AM
sorry to say that i have no source member available with me. I have the object only with me. Now tell me can i change the object type to CLP?
The object type is *PGM, not CLLE or CLP. The CLLE/CLP is an object attribute that is set by the compiler. If you want it changed, you should recompile.
See if it was compiled with debug data. If it was, you might be able to access a listing view from a debug session. At the very least, that might allow copy/paste of the source.
Tom
You can also use the command RTVCLSRC to retrieve the source and then changes the member’s attribute.
Cheers.
Hi Tom,
can u tell me how to see the listing if it was compiled with debug data. Tell me also the next step how to access the listing view from debug session? Shall i need to debug the program then? tell me how to proceed..thanks
Do a DSPPGM to screen. Hit enter until you get to display 3 of 7.
If it’s debugable you will see Debug Data *YES.
The do a STRDBG command and you should be able to view the source.
ex. STRDBG PGM(QTEMP/OEM1) UPDPROD(*YES)
Give that a shot
HI TOd,
can you plz explain 3 of 7 from display screen of DSPPGM. If i hit 2nd time enter it’s taking me out of the command. Thanks
If i hit 2nd time enter it’s taking me out of the command.
That indicates it’s OPM and not ILE. There isn’t enough attributes exposed from OPM objects to need more than a couple screens.
If the OPM CL program was compiled with ALWRTVSRC(*YES), you can use the RTVCLSRC command.
You can try:
If debug source is available, you should see it. If it isn’t, the closest you can probably get is with DMPOBJ. Not great, but sometimes useful.
Tom