CBLCNVRT macro for COBOL 4.2

Document ID : KB000045345
Last Modified Date : 14/02/2018
Show Technical Document Details

Question: 

Which parameter should be used when invoking Cobol Convert macro CBLCNVRT for COBOL release 4.2?

Environment:  

CA Easytrieve Report Generator 11.6 and COBOL 4.2.

Answer: 

Please ensure that you are invoking CBLCNVRT like this using the I341 parameter: 

%CBLCNVRT GLOSTAB QUOTE '''''' SYSTEM OS COBOL I341 

The important part is COBOL I341 because your COBOL compile listing is from Enterprise COBOL 4.2. Without the COBOL parameter being specified, by default a listing from the VS COBOL compiler is expected. 

The COBOL parameter is important as it determines which COBOL DMAP record layout is used. Since the layout between VS COBOL compiler and Enterprise COBOL 3.4.1 and higher compilers are different, the conversion cannot be performed and the file remains empty.