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

Uses of DSNHADDR and DSNHADD2 and DSNHLI


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Arun Kumar Tupili

New User


Joined: 30 Nov 2006
Posts: 14
Location: Banglore

PostPosted: Mon Jul 23, 2007 4:03 pm
Reply with quote

Hi,

Can any one please let me know the uses of DSNADDR, DSNADD2 and DSNHLI. In complist , I have seen the appropriate call statements for the replacement of SQL Statements.

Why are we calling those routines and what purpose do they serve. Are those any calls to the stored procedures, or DBRM's( App. Pgm. once precomplied, replaces SQL Queries with calls, stores SQL Queries into DBRMLIB).

Also can anyone suggest me in finding an oustanding book on COBOL+DB2

Thanks
Arun
Back to top
View user's profile Send private message
TG Murphy

Active User


Joined: 23 Mar 2007
Posts: 148
Location: Ottawa Canada

PostPosted: Tue Jul 24, 2007 6:14 pm
Reply with quote

DSNADDR is called in the INIT-SQL section (or perhaps it is called SQL-INIT - this is off the top of my head). Its purpose is to establish addressability to each of the host variables that your program uses. DSNHLI (High Level Interface) is called to execute an SQL statement.

I'm not certain about DSNADD2 but I would guess that it performs a similar function as DSNADDR.

Remember that SQL syntax such as EXEC SQL SELECT .... is not understood by the cobol compiler. The DB2 pre-processor converts DB2 syntax into COBOL statements such as CALL. What routines get CALLed? Routines like DSNADDR and DSNHLI.
Back to top
View user's profile Send private message
Arun Kumar Tupili

New User


Joined: 30 Nov 2006
Posts: 14
Location: Banglore

PostPosted: Wed Jul 25, 2007 1:16 pm
Reply with quote

Thanks a lot for the suggestion.

But I am not sure with the exact functionalities of those Routines.
In which DB2 Libraries those reside,etc.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Help with SOC4 on DSNHLI/DSNELI DB2 11
No new posts CEE3501S The module DSNHADDR was not ... ABENDS & Debugging 11
No new posts soc 4 with dsnhli while debugging cic... IBM Tools 1
No new posts CEE3501S The module DSNHADDR was not ... JCL & VSAM 2
No new posts Abend S0C4 in DSNHLI when Open Cursor... DB2 6
Search our Forums:

Back to Top