Page 1 of 1

Type of syntax error check in COBOL-DB2 programs

PostPosted: Mon Jun 22, 2015 10:24 am
by tjegan
In a COBOL-DB2 program,
1. Precompiler is responsible for checking syntax errors of DB2 statements.
2. Bind also used to check the syntax errors of DB2 statements.

Query: Can any one please let me know what exactly, the sytem will check for errors
during precomilation and Bind.

Also please let us know some examples for each.

Re: Type of syntax error check in COBOL-DB2 programs

PostPosted: Mon Jun 22, 2015 2:46 pm
by NicC
No idea without reading it up but...the pre-compiler does more than 'syntax-check' it replaces your SQL code with COBOL/host-language code. Check the output from the prcompiler. And I do not know if BIND checks the syntax of your SQL code.
You will find better information in the DB2 manuals/redbook.

Re: Type of syntax error check in COBOL-DB2 programs

PostPosted: Mon Jun 22, 2015 4:31 pm
by alexm
Re Precompiler: I cannot point you to a document including detailled answers to your questions,
however, to get an idea you may have a look at the precompiler generated DSNH messages.