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
 
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 Having a problem FTP'ng to the MF pahiker All Other Mainframe Topics 2 Fri Nov 10, 2017 8:20 pm
No new posts -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts Problem commiting to DB2 from IMS MPP Ole Soerensen IMS DB/DC 2 Wed Jul 26, 2017 5:19 pm

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