Only Oracle Pro*COBOL supports the use of host variables directly in a prepared statement. If you are using the OpenESQL precompiler then you need to use question marks as parameter markers instead of host variables. Please see documentation here: I did a video on this some time ago that may also be of some help. Visual COBOL in a NutShell: Using Dynamic SQL
↧