My company recently used the tivoli workload scheduler (TWS) to remotely trigger jobs from z / OS to the window server. we verified that tivoli can successfully start mssql services.
Now the problem is that we have the .NET CL program that we used daily to extract some data in the AS400 to the mssql server, it worked fine before using the Windows scheduler and ran daily on a specific time frame. Now we are trying to centralize the scheduler so that TWS remotely runs the prepared batch file (it runs the CL program).
but running the CL program shows the following error when trying to connect to the AS400 database.
.Net Framework data providers require Microsoft Data Access Components (MDAC). Install Microsoft Data Access Components (MDAC) version 2.6 or later.
Edition: in the normal scenario, we assumed that the program could run successfully, it should be the same as using the window scheduler, set the schedule and execute it. the only differences are that the scheduler is not yet a window scheduler, but switches to TWS and runs the CL program remotely. but execution shows the above error while executing the CL program. we do not know why this error occurs. we tried to restart the CL program and schedule it in the window scheduler, it works fine. but the schedule on TWS is remote, an error.
For testing and observation that we have done so far:
Our server is a Windows Server 2008 Service Pack 2 (SP2) x64 server, I did some MDAC research used in older versions, while 2008 server should ship with a newer version of MDAC (WDAC 6.0), and it cannot to be reinstalled, so I assume MDAC / WDAC should be installed correctly.
the CL program was compiled using .NET 2.0 / 3.0 / 3.5 and tested all of them with the same error.
they could write error logs to sql server DB, so I assume that the connection driver used in the CL program has no problems. but this may be caused by the IBMDA400 driver.
TWS uses the administrator account on our server to run batch files, the TWS client (listener) is installed on our server to run programs on our server, but we donβt know how they connect to our server (SSH? Telnet?), And they, It seems they donβt actually connect to our server for a remote trigger (starting our work in silent mode).
we are desperate to find any solutions, if anyone can give any hints or thoughts, this will be very useful and will greatly help people with the same problem in the future.
Many thanks!.
source share