[UniObjects] Session.OpenFile returns nothing

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

[UniObjects] Session.OpenFile returns nothing

Post by admin »

We are trying to use VB to get info from a file that resides on a DataStage server. UniObjects has been loaded and revision levels verified with Informix/Ascential. The file was created by telnet to the DS server, logging in as "oliverc", and doing a plain old CREATE.FILE TESTFILE 30 and adding a record to it with the editor.

The VB code is:

Dim Session as Object
Dim FileObj as Object

Set Session = CreateObject(UV_SESSION_OBJECT)
Session.UserName = "oliverc"
Session.Password = "therealpassword"
Session.Hostname = "servername"
Locked