Page 1 of 1

Getting VB Return Code from DSExecute

Posted: Tue Aug 28, 2001 8:54 pm
by admin
If I am executing a Visual Basic program via DSExecute, is there a way I can get the SystemReturnCode?

Details:
I am running NT DataStage 4.2.1. Im using Visual Basic, but not from COM or MTS. So I am just using the DSExecute command to run the executable.
Syntax: Call DSExecute(ShellType, Command, Output, SystemReturnCode) What Im using: Call DSExecute("NT","E:DSTESTVisualBasicTestRC.exe",xOutput,xRC)
Call DSLogInfo("TestRC",xOutput)
Call DSLogInfo("TestRC",xRC)

Thanks,

Scott