Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

DB2 - Syntax Error Checking

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
madhugoodboy

New User


Joined: 24 Jan 2006
Posts: 12

PostPosted: Fri May 19, 2006 10:43 am    Post subject: DB2 - Syntax Error Checking
Reply with quote

Hi All,


Can antbody tell me where exactly the syntax checking will be done
for a cobol-db2 program (i mean whether in the precompilation or in the Bind process.

Great thanks if you give the solution in Advance.


Thanks & Regards
Madhu
Back to top
View user's profile Send private message

psreddy
Currently Banned

New User


Joined: 18 May 2006
Posts: 4

PostPosted: Fri May 19, 2006 10:54 am    Post subject: Re: DB2 - Syntax Error Checking
Reply with quote

hi madhu,

syntax check will be done in both situations.....
Back to top
View user's profile Send private message
madhugoodboy

New User


Joined: 24 Jan 2006
Posts: 12

PostPosted: Fri May 19, 2006 11:07 am    Post subject: Re: DB2 - Syntax Error Checking
Reply with quote

Hi PSR,


Can you please explain what exactly will happened on each stage in detail.


Thanks & Regards
Maadhu
Back to top
View user's profile Send private message
twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Fri May 19, 2006 12:22 pm    Post subject:
Reply with quote

Hi Madhu,

At the precompile stage the syntax of the SQL statements will not be checked, but if you include the table declarations (DCLGENs) in the program the fields used in the SQL statements are validated, however this's not a syntax checking.

At the bind stage the SQL statements are checked for syntactical correctness and the errors (if any) will be placed in SYSTSPRT. The following things hold a key to resolving the error:

Code:
STATEMENT=1270
SQLCODE=-138 
SQLSTATE=22011

Cheers, Twissi.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts Row not found Sql error GaganGarg DB2 7 Tue Mar 07, 2017 6:29 am
No new posts DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us