View previous topic :: View next topic
|
Author |
Message |
Haresh
New User
Joined: 04 Jan 2009 Posts: 18 Location: Germany
|
|
|
|
I accidentally coded in one of the DB2 query within COBOL program like below
DB2_COLUMN_NAME = : DCLGEN-NAME ( space between : and D )
The Prcompilation, compilation & Bind are successful.
Can anyone please explain me why i didnt got any Precompilation error? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
read about white space and the db2 pre-compiler. |
|
Back to top |
|
|
Haresh
New User
Joined: 04 Jan 2009 Posts: 18 Location: Germany
|
|
|
|
Sorry i still didnt able to understand. My search for the white space and precompiler fetched me the following,
Removing white space and leaving a spare byte:
Replace each non-blank white space character with a blank (X'20') before making a compile request for that statement.
White space characters include:
Carriage return (X'0D')
Line feed (X'0A')
Tab (X'09').
But clearly the blank in between is X'40'. Am i missing something in the above explanation. I have given the link where i got this info below,
ftp.software.ibm.com/software/data/db2/ad/v8/bldg/prepapi.pdf |
|
Back to top |
|
|
|