S0C4 abend when trying to Import Definitions from Catalog using Telon TDF
search cancel

S0C4 abend when trying to Import Definitions from Catalog using Telon TDF

book

Article ID: 72657

calendar_today

Updated On:

Products

Telon Application Generator

Issue/Introduction

Getting a
     S0C4 Abend 
when trying to Import Table Definitions from the DB2 Catalog into theTelon TDF

Environment

Telon Application Generator, release 5.1

Resolution

Changing the COBOL compile options from DYNAM to NODYNAM 

PARM=(NOSEQUENCE,TRUNC(STD),LIB,LIST,DYNAM,APOST,OBJECT,RENT, 
MAP,OPTIMIZE(FULL),NOLIST) 

to 

PARM=(NOSEQUENCE,TRUNC(STD),LIB,LIST,NODYNAM,APOST,OBJECT,RENT, 
MAP,OPTIMIZE(FULL),NOLIST) 

Additional Information

NODYNAM means that the DB2 module will be linked into the program. 

Enterprise COBOL for z/OS, Version 4.2, Programming Guide 
For COBOL programs that have EXEC SQL statements, your choice of the compiler option DYNAM or NODYNAM depends on the operating environment. 

When you run under: 
TSO or IMS: You can use either the DYNAM or NODYNAM compiler option. 

Note that IMS and DB2 share a common alias name, DSNHLI, for the language interface module. You must concatenate your libraries as follows: 
If you use IMS with the DYNAM option, concatenate the IMS library first. 
If you run your application only under DB2, concatenate the DB2 library first. 
CICS or the DB2 call attach facility (CAF): You must use the NODYNAM compiler option. 
Because stored procedures use CAF, you must also compile COBOL stored procedures with the NODYNAM option.