By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,287 Members | 1,287 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,287 IT Pros & Developers. It's quick & easy.

sqledosd(), sqledgne() - list db directory

P: n/a
Hi, has anybody tried this out, I have some troubles. I want to list
(in a "c" program) all databases from the system directory, belonging
to a particular instance. For some reason, these functions always list
only the databases, belonging to the instance its name was in the
DB2INSTANCE at the moment of the start of my program. Any "attach to.."
or seting DB2INSTANCE in the program afterwards (at least on windows)
doesn't seem to make the call to switch to the next instance.
Any idea what has to be done to list several instances in a program
loop?

Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Yes and it works just fine if you get the parameters right. However for
LDAP directories you need a triple of "undocumented" APIs. We got the
documentation by opening a PMR.

"dbrich" <tu***@utanet.at> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Hi, has anybody tried this out, I have some troubles. I want to list
(in a "c" program) all databases from the system directory, belonging
to a particular instance. For some reason, these functions always list
only the databases, belonging to the instance its name was in the
DB2INSTANCE at the moment of the start of my program. Any "attach to.."
or seting DB2INSTANCE in the program afterwards (at least on windows)
doesn't seem to make the call to switch to the next instance.
Any idea what has to be done to list several instances in a program
loop?

Nov 12 '05 #2

P: n/a
Hi Mark, would it be possible you mail me the documentation? At the
moment I am doing it by starting a process for every instance, but that
is not pretty and bearies other problems with it...

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.