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
 

 

Problem in cursor

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

New User


Joined: 02 Jun 2010
Posts: 4
Location: hyderabad

PostPosted: Sat Oct 09, 2010 2:08 am    Post subject: Problem in cursor
Reply with quote

hi to all,
in my cobol-db2 prog iam getting this
*************
DSNH206I W
DSNHANAL LINE 58 COL 13 STATEMENT REFERENCES COLUMN '2001',
WHICH IS NOT DECLARED IN THE SPECIFIED TABLE(S)
DECLARE CUR CURSOR FOR SELECT*FROM SAEMP WHERE EMPID='2001'

compilation with 4 and exec with 0
it doesn't perform any operation.
plz help me out
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Oct 09, 2010 3:25 am    Post subject:
Reply with quote

Hello,

Is empid numeric?

If it is, '2001' is an invalid literal. . .
Back to top
View user's profile Send private message
samiuddinarif

New User


Joined: 02 Jun 2010
Posts: 4
Location: hyderabad

PostPosted: Sat Oct 09, 2010 2:23 pm    Post subject: Reply to: Problem in cursor
Reply with quote

yes it is numeric
ya my problem is solved
thank you
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Oct 09, 2010 8:54 pm    Post subject: Reply to: Problem in cursor
Reply with quote

You're welcome - thank you for posting it is working icon_smile.gif

d
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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm


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