I created a very simple Enterprise COBOL program to do some socket calls. When I run the program, I am getting a step return code of 1736. I get no messages, no helpful output...nothing else but the return code.
The sample code was a dynamic link, so I tried changing it to static, then I got return code 2736.
It turns out the EZASOKET call is working just fine, but the program is returning with that weird value in the return-code.
What is allowing EZASOKET to change that value?
I had a similar error when testing a vendor supplied assembler routine. If they didn't initialize R8 or R15 upon startup, but incremented it. They fixed the code to do the init and the trouble went away.
Do you think EZASOKET is doing something like that?
Check that the number of parameters you are passing is correct. I think the CALLed program is changing something which the CALLing program thinks is the RETURN-CODE, but itsn't.
EZASOKET seems to have an odd arrangement of parameters, where it must "know" from the first parameter, how many parameters (a variable number) before the last two. If you don't give the correct amount, I think you'll get a the RETURN-CODE in the CALLer mangled.
Try adding another parameter, see if the problem "goes away".