Question Locked

Execute Unix command using vb6.0

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi
I am trying to run universe application using vb code, universe application is in UNIX server its running but after one subroutine, error displayed 81015, and stops running. how can i sort it out. i hope you have a solution for this, coding is as follows.
**********CODING*********************

Private Sub Timer1_Timer()

Dim SBSAsubr As Object
Dim strSBSAFileName As String

strSBSAFileName = ""
If TimeValue(Time) > "01:50:00 PM" And TimeValue(Time) < "02:10:00 PM" Then

If flagFor5AM = True Then

Set SBSAsubr = Uv.Subroutine("AONE.REP", 0)
strSBSAFileName
Do
SBSAsubr.Call
MsgBox SBSAsubr.Error
Loop Until SBSAsubr.Error = 0
Sleep (50000)
***************************************
Thank you in advance

3 replies

by robo_dev

How are you creating the session object and how are you closing the session object?

Are you using ODBC?

by altaf_patni2005

Thanks Robo for replying

i am using Uvoaif object for connection,coding is as follow

Dim fFail As Boolean

Uvoaif.UserName = "root"
Uvoaif.Password = "abcde"
Uvoaif.HostName = "abcd"
Uvoaif.AccountPath = "/disk3/abc"
fFail = Uvoaif.Connect

This discussion is closed to new replies.