MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

cobol+db2

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
bade_miya
Beginner


Joined: 10 Dec 2003
Posts: 110
Topics: 38

PostPosted: Fri Dec 19, 2003 4:47 am    Post subject: cobol+db2 Reply with quote

i have written a cobol program which has an sql cursor declaration having a where clause as "WHERE ARR_TRAN.ARR_ID = :DCLARR-TRAN.ARR-ID
" for this i am getting the error as
DSNHSMUD LINE 303 COL 36 UNDEFINED OR UNUSABLE HOST VARIABLE "DCLARR-TRAN"
DSNHSMUD LINE 303 COL 48 UNDEFINED OR UNUSABLE HOST VARIABLE "ARR-ID"
could anyone please tell me what might be the problem.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Fri Dec 19, 2003 6:24 am    Post subject: Reply with quote

Bade miya,

please show us the declaration of the DCLARR-TRAN.ARR-ID and also the table declaration of the column ARR_ID

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
hari_uss
Beginner


Joined: 19 Dec 2002
Posts: 78
Topics: 6
Location: Trivandrum, India

PostPosted: Fri Dec 19, 2003 6:25 pm    Post subject: Reply with quote

Why would you need the qualifier DCLARR in host variable. Remove that and the period (or dot) between DCLARR-TRAN and ARR-ID and check whether that works.

Last edited by hari_uss on Mon Dec 22, 2003 1:14 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Abhi
Beginner


Joined: 03 Dec 2002
Posts: 21
Topics: 4
Location: India, Pune

PostPosted: Sun Dec 21, 2003 8:57 am    Post subject: Reply with quote

Just a quick check... have u included the DCLGEN in ur program?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group