COBOL

 View Only

 What relationships can there be between the IBM Enterprise COBOL V6R4 compiler and its use in a USS shell script?

Denis FALLAI's profile image
Denis FALLAI posted Tue November 19, 2024 07:34 AM

Hi,

We use the IBM Enterprise COBOL V6R4 (June 2023) compiler in a USS shell script: compilation using IBM Dependency Based Build.

See sample here: https://github.com/IBM/dbb-zappbuild/blob/main/languages/Cobol.groovy

We are having issues with handling copybook inclusions: incomplete inclusion, duplicate code... especially when the same copybook is referenced multiple times but with different replacement parameters.

No particular error message is issued other than that the code produced by including the copybooks is not compilable.

The same program, same copybooks, same compilation options,  compiles without any problem in a traditional JCL under MVS.

We use IGYCRTL in both case, (no use of cob2 under uss).

Copybooks are PDS-E (LIBRARY) members, no USS files.

SYSUTn files are allocated identically under USS and in the MVS JCL. The sizes have even been increased for compilation under USS without this providing a solution.

So why can't the IBM Enterprise COBOL V6R4 compiler compile programs in a USS shell context?

What are the dependencies and differences between running under USS and running under MVS?

Are there any USS/OMVS prerequisites that we have not implemented?

Why can't the compiler include copybooks correctly under USS? and without issuing any error messages about it?

Could this be related to a memory size issue under USS? Issue about zFS contening the Home Directory of active user, (size problem)?

Thanks for help.

Mike Chase's profile image
Mike Chase

Please open a Case. I think the compiler should be able to handle this (disclaimer: I worked on the code generator and optimizer, not the parser, the "front end", and am now on a related project, the compiler front end team would know for sure here), but we'd need actual steps to reproduce this.

David Tremaine's profile image
David Tremaine

Are you using the COPYLOC option to access copybooks in MVS data sets from USS?

Denis FALLAI's profile image
Denis FALLAI

Hi,

@Mike Chase: I open a case, ref TS018454392, with a sample program.

Thanks.

Denis FALLAI's profile image
Denis FALLAI

Hi,

The latest news is that there is a problem with the management of the SYSUT5 file used to manage Copybooks during the source code expansion phase...