1,150 pts.
 Change attribute for CLLE program object
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

Answer Wiki:
Yes..Change the SRCTYPE from CLLE to CLP by taking 13 option in WRKMBRPDM. Then take option 14 to crete the CL program.
Last Wiki Answer Submitted:  April 12, 2010  12:32 pm  by  Sathishkumarv   60 pts.
All Answer Wiki Contributors:  Sathishkumarv   60 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

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?

 1,150 pts.

 

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

 107,915 pts.

 

You can also use the command RTVCLSRC to retrieve the source and then changes the member’s attribute.
Cheers.

 980 pts.

 

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

 1,150 pts.

 

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

 3,910 pts.

 

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

 1,150 pts.

 

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:

STRDBG PGM( mypgm ) OPMSRC(*YES) DSPMODSRC(*YES)

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

 107,915 pts.