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
 
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm

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