Hello all, I'm more of an administrator/engineer than a programmer, so I apologize if this is an easy question. I don't have the source to a clle program on a system. I try to execute a rtvclsrc command, but it tells me the program is not a cl program.
Can I retrieve the source from a clle program? Thanks, Larry cid:[email protected] Larry Ketzes Lead Enterprise Infrastructure Engineer [email protected] 302-594-2146 The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited.
If you are not the intended addressee, please notify the sender immediately and delete this message. If I understand this suggestion, it CAN work but involves lots of copy/paste. And the program has to have been compiled with DBGVIEW(.ALL) or at least DBGVIEW(.LIST) - that way, you'll have the compile listing in the debug - AND in the object.
RTVCLSRC The RTVCLSRC command is not allowed against an ILE CL module or program object to retrieve the CLLE source.However, the RTVCLSRC is.
That brings up another option - DMPOBJ will contain the entire listing, IF you compiled with the necessary DBGVIEW setting. Again, this applies to older versions - Larry has given a new option, which still depends on compiling with the required parameters. AFaIK I've never used the heavy lifting has already been done for the effect, from use of the debug-capable CLLE ILE CL programs prior to the IBM i 7.1 support, using the Debug APIs: Retrieve Source from ILE Modules Aug. 31, 1997 Chris Stead System iNEWS Magazine (You can download NEWS/400 code from as an AS/400 save file, as separate PC files, or as a PC source code 'bundle' file.) 'If you've ever encountered AS/400 objects whose source code is missing, or you couldn't determine which version of the source code was actually running in production, you may find utility RtvSrc a useful little utility.
For Integrated Language Environment (ILE) programs and service programs that contain debugging data, RtvSrc uses IBM-supplied debugging APIs to re-create original source code from the debugging data embedded in a program. While utility RtvSrc is useful, you should note that there's a significant 'gotcha,' which I describe later.'
Regards, Chuck. Hello all, I'm more of an administrator/engineer than a programmer, so I apologize if this is an easy question. I don't have the source to a clle program on a system. I try to execute a rtvclsrc command, but it tells me the program is not a cl program. Can I retrieve the source from a clle program? Thanks, Larry Larry Ketzes Lead Enterprise Infrastructure Engineer 302-594-2146 The information contained in this message may be CONFIDENTIAL and is for the intended addressee only.
Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message.