Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: RE: Possible to use a variable for database?

$
0
0
One solution could be to define the SQL statements within a copy file. Copy file ‘SQLVarTabName.cpy’: EXEC SQL select * from TabName  where x = z END-EXEC Cobol source: If recNumber = 2000   copy SQLVarTabName replacing TabName by ==A==. end-if If recNumber = 2100   copy SQLVarTabName replacing TabName by ==B==. end-if Freundliche Grüsse Werner Lanter

Viewing all articles
Browse latest Browse all 5819

Trending Articles



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