Previous Topic Next topic Print topic


Generating a COBOL Program

When you set the Generate COBOL Code option to True, the SP Test tool automatically generates a COBOL program that calls the stored procedure. This COBOL program reflects the extent to which code was executed when you ran the stored procedure. If an error occurs within the stored procedure, the generated program is incomplete.

You can view the generated program on the Code tab after the stored procedure executes. Parameter values are generated as host variable names unless you specified a special register. In that case the special register name is generated as part of the EXEC SQL CALL statement. For example:
EXEC SQL
  CALL GETEMPD2 (CURRENT TIMESTAMP - 255 DAYS, :GETEMPD2-RSLT)
END EXEC
Previous Topic Next topic Print topic