I have a COBOL/DB2 Program - ProgramA, which calls a sub-program COBOL/DB2 Program - ProgramB.
both are compiled, linked, and bound using the same JCL, the only change is the program name.
Obviously, ProgramB is compiled, linked and bound before ProgramA
Program A does a "bit" of SQL - just to demonstrate that it doesn't get a -805;
EXEC SQL
SELECT 1
INTO :SV1G-NUMMOVD2
FROM SYSIBM.SYSDUMMY1
END-EXEC
MOVE SQLCODE TO WS001-SQLCODE
DISPLAY 'SQLCODE = ' WS001-SQLCODE ,
then calls ProgramB
CALL 'BPB0003' USING X003-PARAMETROS.
When ProgramA is executed, the first display that appears is "SQLCODE = 0", so it seems that ProgramA is O.K.
However, the display after BPB0003 is called shows a -805. Which I believe indicates that the Load Module and DB2 Package info. disagree.
Below are the bind parameters. Any ideas, anyone ?
//BINDPLAN EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM (DBD1)
BIND MEMBER (HARNESS2 ) -
PLAN (HARNESS2 ) -
LIBRARY ('DEA.SIPDAL.DBRMLIB' ) -
ACTION ( REPLACE ) -
ISOLATION ( CS ) -
VALIDATE (BIND ) -
RELEASE (COMMIT ) -
OWNER (DESADM ) -
QUALIFIER (DES01 )
END
//BINDPLAN EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM (DBD1)
BIND MEMBER (BPB0003 ) -
PLAN (BPB0003 ) -
LIBRARY ('DEA.SIPDAL.DBRMLIB' ) -
ACTION ( REPLACE ) -
ISOLATION ( CS ) -
VALIDATE (BIND ) -
RELEASE (COMMIT ) -
OWNER (DESADM ) -
QUALIFIER (DES01 )
END
both are compiled, linked, and bound using the same JCL, the only change is the program name.
Obviously, ProgramB is compiled, linked and bound before ProgramA
Program A does a "bit" of SQL - just to demonstrate that it doesn't get a -805;
EXEC SQL
SELECT 1
INTO :SV1G-NUMMOVD2
FROM SYSIBM.SYSDUMMY1
END-EXEC
MOVE SQLCODE TO WS001-SQLCODE
DISPLAY 'SQLCODE = ' WS001-SQLCODE ,
then calls ProgramB
CALL 'BPB0003' USING X003-PARAMETROS.
When ProgramA is executed, the first display that appears is "SQLCODE = 0", so it seems that ProgramA is O.K.
However, the display after BPB0003 is called shows a -805. Which I believe indicates that the Load Module and DB2 Package info. disagree.
Below are the bind parameters. Any ideas, anyone ?
//BINDPLAN EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM (DBD1)
BIND MEMBER (HARNESS2 ) -
PLAN (HARNESS2 ) -
LIBRARY ('DEA.SIPDAL.DBRMLIB' ) -
ACTION ( REPLACE ) -
ISOLATION ( CS ) -
VALIDATE (BIND ) -
RELEASE (COMMIT ) -
OWNER (DESADM ) -
QUALIFIER (DES01 )
END
//BINDPLAN EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM (DBD1)
BIND MEMBER (BPB0003 ) -
PLAN (BPB0003 ) -
LIBRARY ('DEA.SIPDAL.DBRMLIB' ) -
ACTION ( REPLACE ) -
ISOLATION ( CS ) -
VALIDATE (BIND ) -
RELEASE (COMMIT ) -
OWNER (DESADM ) -
QUALIFIER (DES01 )
END