Page 1 of 1

Reading Windows Registry Key

Posted: Tue Jan 31, 2006 11:14 am
by gateleys
Hi,
Is it possible to read the Windows registry key(s) using DS7.0? For example, a password that is set in the Win registry, so it can be used as a parameter while running a job.

Posted: Tue Jan 31, 2006 11:54 am
by ArndW
Microsoft has published a registry API that can be used from Visual Basic and C/C++, but there is none for DataStage to read and interpret the file's contents. But you can always bind in an external program that you write in one of those languages - the easiest way is to create an external .exe program which you call from DS.

Posted: Tue Jan 31, 2006 12:21 pm
by gateleys
Thanks Arnd, I will try it and let you guys know about my progress.

gateleys