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
 

 

DSNH312I error is coming .... what to do?

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

New User


Joined: 21 Feb 2004
Posts: 10

PostPosted: Sun Sep 26, 2004 1:37 pm    Post subject: DSNH312I error is coming .... what to do?
Reply with quote

Hi,

I defined the appropriate host variables in the working storage section and i'm using the same variables in the "WHERE CLAUSE" and "SET CLAUSE" of an UPDATE Statement.

EXEC SQL
UPDATE <Table-Name>
SET <Col1> = <:HV1>
WHERE
<Col1> = :<Hv2>;
End-Exec.

Kindly help me as soon as possible. I'm getting this error "Unused or Undefined Host Variable " even though i defined them in the working storage section. This is actually a COBOL, DB2 and CICS Program.

Regards,

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

anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Mon Sep 27, 2004 2:01 pm    Post subject:
Reply with quote

Hi Narayana,

Did u check whether the length of host variable is same as DB2 column?Better way i suggest is use the DCLGEN variables instead of using seperate variables.

Thanks,
Anu
Back to top
View user's profile Send private message
gv_narayana_rao

New User


Joined: 21 Feb 2004
Posts: 10

PostPosted: Mon Sep 27, 2004 4:46 pm    Post subject:
Reply with quote

Hi,

Thanx for ur reply. But i fixed it. But I have small doubt in that.
Earlier, i'm using a group data item at "01" Level in cobol say ws-exp-date, which is subdivided into DD, MM, YY. I moved this value to a host variable which is defined at "77" Level Number and i'm able to remove the problem. How this can happen?

Can anyone plz spend time to clear my doubts. Thanking you in anticipation.

Yours
GVNRao
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Sep 28, 2004 12:23 am    Post subject:
Reply with quote

Hi GV,

01 levels generally define the Host STRUCTURE for the row, not a column. You could have defined the host variable as an 05 level with no problem.

As Anu suggested it's better to INCLUDE the DCLGEN generated structure and use those Host variable names, because you can be sure they're defined properly.
Back to top
View user's profile Send private message
gv_narayana_rao

New User


Joined: 21 Feb 2004
Posts: 10

PostPosted: Wed Oct 06, 2004 9:14 am    Post subject:
Reply with quote

Hi Jack,

Thanx for the reply. Its very helpful.

Regards
GVNRao
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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


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