Development and Pipeline

 View Only

 Handling Cobol Stored Procedure code in DBB

Thomas Raskin's profile image
Thomas Raskin posted Tue August 19, 2025 04:06 PM

I have been working with the DBB-supplied Cobol.yaml file to ensure that we are using the appropriate compiler options for the different types of Cobol programs we have.  I was wondering if anyone has recommendations on how to treat Cobol Stored Procedures. DBB has the supplied ${IS_SQL} and ${IS_CICS} variables, but there is nothing to indicate to DBB that it is building a Cobol Stored Procedure versus a Cobol DB2 Batch program - both have SQL code. but I am not aware of any other differences in the code.  This is needed as there are some compiler options that are different - for example ATTACH(RRSAF) - which would be included.  One thought would be to use a .spcbl extension for Cobol Stored Procedures, just like there is a .spsql extension for native Stored Procedures. Any tips for resources I can consult would be appreciated as well!

Thanks, Tom