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

UNDEFINED or UNUSABLE HOST VARIABLE


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
parag manilal chheda

New User


Joined: 02 Oct 2008
Posts: 2
Location: mumbai

PostPosted: Thu Oct 02, 2008 1:17 pm
Reply with quote

hi

i m getting the error DSNH3121 SAYING "UNDEFINED OR UNUSABLE HOST VARIABLE".

THE VARIABLE NAMES AND THE DATA TYPES ARE SAME IN THE PROGRAM & DECLGEN FILE.

CAN ANYBODY TELL WHAT IS THE PROBLEM.

THANKYOU.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Oct 02, 2008 1:31 pm
Reply with quote

look at your precompiler listing.
If the copybook that contains the host variables has been expanded (via an SQL INCLUDE),
and you can find them in the listing,
  1. you have either bad host variable definitions- data types are non-compatible
  2. you did not use the :HOST-VAR syntax. that is colon - : - host variable reference
Back to top
View user's profile Send private message
parag manilal chheda

New User


Joined: 02 Oct 2008
Posts: 2
Location: mumbai

PostPosted: Thu Oct 02, 2008 1:43 pm
Reply with quote

I haven't used the copybook, & the data types are also compatible.
The error coming is " An EXEC SQL INCLUDE stmt was found but SQL compiler was not in effect"
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Oct 02, 2008 8:15 pm
Reply with quote

Hello,

You need to check with you dba or whoever supports the standard compile/link jcl. It sounds like you may be using the wrong jcl and they can tell you which jcl you should use.

When you post error information, you should post more completely and make sure you include the message id that came with the message text.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts access the last host command CLIST & REXX 2
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
Search our Forums:

Back to Top