Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 0 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 5 Thu Sep 07, 2017 6:02 pm
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us