If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > SQLENV.H in Zos

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-28-05, 06:15
sathish_T sathish_T is offline
Registered User
 
Join Date: Feb 2005
Posts: 7
Smile SQLENV.H in Zos

Hi All,

Good Day.

Does z\OS have SQLENV.H header file ?

If not how to capture currentlocalinstancename ( this is supported in AIX complier) at run time of the C program ?

I am struggling on this for past three weeks .

If any one just throw some lights on this willl be great.

Warm Regards,

Sathish.T
Reply With Quote
  #2 (permalink)  
Old 03-01-05, 02:42
jacampbell jacampbell is offline
Registered User
 
Join Date: Jan 2005
Posts: 191
DB2 on zOS has a rather different view of instances and databases from DB2 on LUW. Hence much of the stuff in sqlenv.h is simply meaningless.

However.
exec sql set :hv = current server
may be what you are looking for

Failing that call DSNWLI using READS to get an IFCID record (I like 234) with the correlation header. Documented in the Admin Guide appendicies.

James Campbell
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On