Extract SQL statements from COBOL source code using REXX



IBM's Command List programming language & Restructured Extended Executor

Re: Extract SQL statements from COBOL source code using REXX

Postby BillyBoyo » Mon Oct 22, 2012 10:16 pm

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?
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Extract SQL statements from COBOL source code using REXX

Postby Akatsukami » Mon Oct 22, 2012 10:35 pm

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Previous

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post