Page 2 of 2

Re: Extract SQL statements from COBOL source code using REXX

PostPosted: Mon Oct 22, 2012 10:16 pm
by BillyBoyo
Well, that could explain the dull silence silence when I posed such a solution a while ago :-)

Is there nothing coming out of the "compile process" which has the text of the sql statements on it? After all the copbooks and whatever have been processed?

Re: Extract SQL statements from COBOL source code using REXX

PostPosted: Mon Oct 22, 2012 10:35 pm
by Akatsukami
BillyBoyo wrote:Is there nothing coming out of the "compile process" which has the text of the sql statements on it? After all the copbooks and whatever have been processed?

I don't know about the Enterprise COBOL compile process, but the PL/I precompiler preserves them as comments in the precompiled source. OTOH, since in my shop the precompiler and compiler listings are volatile -- they are scratched at midnight -- I'd go directly for the source as the source (so to speak), as I see no advantage to working the listings.