Using cobol, DB2v7 on OS/390
Got a -804 Code7(sqlda length is invalid) when calling a program on the second time....
Program has the following logic...
Main Paragraph
process...
Perform paragraphA
process...
Perform paragraphA(error received)
process...
Paragraph A start
Call ProgramB
Paragraph A end


Anyone has any idea why is it failing on the second call?