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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


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