pari205
asked on
Retrieve COBOL Source from AS400
My client uses a tool retrieve COBOL source with a object.
In CL we have RTVCLSRC to retrive the CL source from object created.
Please let me know if there is any tool to get the COBOL source from an object.
Thanks,
Ramesh
In CL we have RTVCLSRC to retrive the CL source from object created.
Please let me know if there is any tool to get the COBOL source from an object.
Thanks,
Ramesh
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Dave has already given the correct answer and can provide details about it. I'm just filling the subject in.
To start, you only have RTVCLSRC for OPM CL, not for ILE CL. And you only have RTVCLSRC if it was enabled when the program was created.
Similarly for COBOL or RPG or any other language, you can only retrieve the source from the compiled program if it was enabled when the program was created. For COBOL, this would only done for ILE COBOL and done by specifying a DBGVIEW() option such as *LIST or *ALL so that the compilier listing itself gets stored with the program object.
The alternative is a commercial decompiler.
In other words, if a program wasn't created so that it held the source (even CL), then the source isn't there.
Tom