Getting VB Return Code from DSExecute

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Getting VB Return Code from DSExecute

Post 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
Locked