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.
Type of syntax error check in COBOL-DB2 programs
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: Type of syntax error check in COBOL-DB2 programs
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.
You will find better information in the DB2 manuals/redbook.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
Re: Type of syntax error check in COBOL-DB2 programs
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.
however, to get an idea you may have a look at the precompiler generated DSNH messages.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 3
- 1748
-
by Terry Heinze
View the latest post
Sat Oct 09, 2021 7:51 am
-
-
Getting 0F01C008 Error while running SMP/e Apply Check Job
by csakil » Tue Apr 06, 2021 10:58 pm » in System programming - 0
- 2854
-
by csakil
View the latest post
Tue Apr 06, 2021 10:58 pm
-
-
- 0
- 3497
-
by zeller56
View the latest post
Sun Oct 01, 2023 1:50 am
-
- 10
- 4259
-
by chillmo
View the latest post
Thu Mar 13, 2025 12:01 am
-
-
Security Check for Data centre migration
by aarvalar1 » Fri Apr 14, 2023 4:58 pm » in Mainframe Security - 2
- 2543
-
by aarvalar1
View the latest post
Mon Apr 17, 2023 2:50 pm
-