I saw a few posts on this but cudnt resolve my error. I am getting the foll error while using CBLCNVRT:
*******B006 MACRO SYSTEM - PDS , ERROR IN MACRO FILE
1 %CBLCNVRT GLOSTAB COBOL I340
*******B076 REMAINDER OF STATEMENT IS IGNORED
*******B059 PREMATURE END OF FILE
*******A014 PREMATURE TERMINATION DUE TO PREVIOUS ERROR(S)

I am new to EzTRieve and was trying to convert Cobol copybook to Easytrieve. TRies using I320, I330 and I340 also. This copybook contains 2000 fields and I have to compare 2 difft files. SO please tell me a way to resolve this.

Is SYS3A.EZTP.CAIMAC a Panvelette library or a PDS/PDSE? PANDD1 uses it as a Panvelette library, STEPLIB uses the same file as a PDS or PDSE. PANDD1 is where the MACROs come from (if your macroes are in a PANLIB). Otherwise use AUDMACS DD instead of PANDD1.

Suggest you defer the very large copybook until you have the basic process working correctly.

Which cobol compiler is used on your system?

I am a beginner and trying to use CBLCNVRT for the first time. My intention of telling you that the copybook is huge is that it would be tedious to declare every variable in the program. So I wanted to use an Easytrieve copybook instead. Not sure how I should fine the version of my cobol compiler .

Is SYS3A.EZTP.CAIMAC a Panvelette library or a PDS/PDSE? PANDD1 uses it as a Panvelette library, STEPLIB uses the same file as a PDS or PDSE. PANDD1 is where the MACROs come from (if your macroes are in a PANLIB). Otherwise use AUDMACS DD instead of PANDD1.

SYS3A.EZTP.CAIMAC is the library were i found the macro for CBLCNVRT.This was another doubt that I had? What does this PANDD! point to and what should it contain? What is AUDMACS?

Try replacing the DD Name PANDD1 with AUDMACS. If your macros are in a PDS/PDSE you will not use PANDD1. Your STEPLIB should reference load modules, your AUDMACS should reference source code for the macros.

Resolved all other errors! But still left with the original erro:
*******B006 MACRO SYSTEM - PDS , ERROR IN MACRO FILE
1 %CBLCNVRT GLOSTAB COBOL I341
*******B076 REMAINDER OF STATEMENT IS IGNORED
*******B059 PREMATURE END OF FILE
*******A014 PREMATURE TERMINATION DUE TO PREVIOUS ERROR(S)

Please let me know how do I resolve this. Once this is done, I need to compare 2 files, a test file and prod file. So both have the same copybook and it has 2000 fields as mentioned earlier. So please let me know if there is an easier way of comparing all fields..instead of an IF stmt for each?

Shudder ... bad flashback. Had an applications programmer one time running a program with about 7 or 8 libraries concatenated to STEPLIB. Problem (1) was that the third library was a PROCLIB instead of a load library. Problem (2) was that the COBOL program issued a CALL to a module with the same name as a PROCLIB member name, and the PROCLIB came before the load library with the member in the concatenation.

The first problem wasn't much of an issue -- procedure libraries can be concatenated to load libraries just fine as long as the PROCLIB block size is less than or equal to the load library block size (which it was). The second problem caused an abend that I had not seen before and, good Lord willing and the creek don't rise, I'll never see again! The system does not like load modules that aren't load modules, apparently. Since it was 9 years ago I forget the exact abend code but it took a batch of digging to uncover what the problem was.