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?