IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

A DB2 error SQLSTATE=42601


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dineshsjce
Currently Banned

New User


Joined: 16 Apr 2007
Posts: 41
Location: Bangalore

PostPosted: Wed May 30, 2007 1:47 pm
Reply with quote

I got the error SQLSTATE=42601 when comipling a cics program in unix. What is the cause for that error ?
Back to top
View user's profile Send private message
dineshsjce
Currently Banned

New User


Joined: 16 Apr 2007
Posts: 41
Location: Bangalore

PostPosted: Wed May 30, 2007 1:53 pm
Reply with quote

I got the error SQLSTATE=42601 when comipling a cics program in unix. What is the cause for that error ?
Back to top
View user's profile Send private message
dineshsjce
Currently Banned

New User


Joined: 16 Apr 2007
Posts: 41
Location: Bangalore

PostPosted: Wed May 30, 2007 2:04 pm
Reply with quote

I executed a cics application in unix. But i got the following error

" An unexpected token "CNTCT_EFF_DT
" was found following "SELECT ". Expected tokens may
include: "<space>". SQLSTATE=42601 "

This is the piece of my program code. Can anyone please help me ?

EXEC SQL
SELECT CNTCT_EFF_DT
, CUST_CNTCT_ID
INTO :WS-EFF-DATE
, :WS-CNTCT-ID
FROM CON01_CUST_CNTCT
WHERE
AID_CD = :WS-AID-CD-ONLY
AND COMP_CD IS NULL
AND PRICGRP_CD IS NULL
AND CUST_NBR IS NULL
AND CNTCT_PURP_CD = :WS-PURPOSE-CD-IDP
AND CNTCT_END_DT > :CON01-CNTCT-EFF-DT
Back to top
View user's profile Send private message
Nimesh.Srivastava

New User


Joined: 30 Nov 2006
Posts: 78
Location: SINGAPORE

PostPosted: Wed May 30, 2007 2:10 pm
Reply with quote

what are trying to do...an compilation or execution / run of the program. It seems the error you have posted to be an compilation error.
Provide some more details and have you included the SQLCA structure in your code.
Thanks
Nimesh
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts U0016 error in JCL JCL & VSAM 4
No new posts python on z/OS error no encoding decl... Testing & Performance 0
No new posts IEW2315E 1369 Link error All Other Mainframe Topics 3
No new posts Help on IMS -API URL migrating from P... IMS DB/DC 1
No new posts JES datasets IO Error ABENDS & Debugging 3
Search our Forums:


Back to Top