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
 
Uses of DSNHADDR and DSNHADD2 and DSNHLI

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Uses of DSNHADDR and DSNHADD2 and DSNHLI
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: 149
Location: Ottawa Canada

PostPosted: Tue Jul 24, 2007 6:14 pm    Post subject:
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    Post subject:
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    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 Help with SOC4 on DSNHLI/DSNELI Kiran K Menon DB2 11 Sun Apr 24, 2016 10:16 pm
No new posts CEE3501S The module DSNHADDR was not ... Sayan Bhattacharyya ABENDS & Debugging 11 Tue Oct 20, 2015 3:53 pm
No new posts soc 4 with dsnhli while debugging cic... manigadu IBM Tools 1 Sat Nov 22, 2014 1:05 pm
No new posts CEE3501S The module DSNHADDR was not ... vk0022789 JCL & VSAM 2 Sat May 29, 2010 11:28 am
No new posts Abend S0C4 in DSNHLI when Open Cursor... pleonard DB2 6 Wed Dec 17, 2008 8:58 pm

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