Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

EXEC SQL INCLUDE

$
0
0

Hi,

I'd like to understand the use of  EXEC SQL INCLUDE a bit better.

Can somebody explain (or point me to a good doc explanation)... what does EXEC SQL INCLUDE actually do and also what happens if host variables i.e. table layouts etc aren't declared inside one i.e. are just declared as regular working-storage items? Also does it matter if fields 'included' as it were, are not actually used with sql?

Do I actually need these special includes? Are they created automatically?...

a. exec sql include sqlda end-exec.

b. exec sql include sqlca end-exec.

If I do, presumably I could just copy the content of (a) and (b) above into my own copybook? - ideally I'd have a single copybook with all db related fields so that I can just put it into the 100 or so programs I'm converting?

Should mfsqlmessagetext be 'included' ? Does it matter if it is or isn't?  

Thanks in advance,

Linden 


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>