CLI access to TeraData from MVS

Connectivity

CLI access to TeraData from MVS

Hi All

I have been attempting to setup a CLI connection to teradata using C, under an MVS environment.
I have been trying to use the DBCHINI function to initialize a DBCHAREA struct, however I keep just getting a return code of 157. I first set the area_length variable of the struct. The two message pointers within DBCHAREA contain either junk or NULL.

I cant find any documentation on the RC's (other than 0 is success), so I am having difficulty analysing what the problem is.

My basic question is what does CLI require in order to at least initialize? Where can i find detailed information on the return codes from the basic CLI functions? Any other tips on getting CLI to work under MVS?

Cheers
Mick
2 REPLIES
Teradata Employee

Re: CLI access to TeraData from MVS

From the Teradata Messages manual:

CLI0157 CLI2 Parameter module HSHSPB unavailable

Explanation: This error indicates that the CLI2 parameter block module was not link-edited into the application and an attempt to dynamically load it at
runtime failed.

Re: CLI access to TeraData from MVS

Thanks very much for pointing that out. The section called 'Mainframe CLI-Series Messages' was spot on, just what I was looking for!