Neither of your last two posts had any attachments. But, attaching an ADATA file here isn't a good idea. It could be a security risk if that's real code - the source code can be derived from a valid ADATA file.
Opening a Case is the best approach for getting support here.
Original Message:
Sent: Mon November 04, 2024 06:56 AM
From: SrinivasaShashikanth Kotla
Subject: How Do You Create an ADATA File when Compiling a COBOL Copybook?
Hi Mike,
Thank you very much for you email.
Please find the attached details of the error and also the Adata file produced the Compile JCL in out mainframe environment.
While above adata file was processed in the tool to generate Java version we get the below mentioned error.
Kindly suggest on the way forward to get this error fixed or sorted out.
Tool used is - IBM Record Generator: 3.0.2
Thanks and Regards
K.S.Shashikanth
Original Message:
Sent: 10/30/2024 7:43:00 PM
From: Mike Chase
Subject: RE: How Do You Create an ADATA File when Compiling a COBOL Copybook?
As a member of the compiler team, I can't comment on how another tool is using the ADATA file. The error could very well be in the other tool. It would help to know what error message you got from the other tool, as well as any error messages you got from the compiler.
As far as the compiler goes:
- ADATA is the only option you need for the compiler to create an ADATA file.
- The ADATA accurately reports errors encountered during compilation, so if there were any compiler errors, I'd expect that another tool using the ADATA might not succeed either.
- ADATA generation should be successful for ANY valid program, no matter how big or small, no matter how many copybooks it uses, as long as compilation is successful.
------------------------------
Mike Chase
Enterprise COBOL Developer
mike.chase@ca.ibm.com
Original Message:
Sent: Tue October 29, 2024 02:27 AM
From: SrinivasaShashikanth Kotla
Subject: How Do You Create an ADATA File when Compiling a COBOL Copybook?
Hi, Attached is the Adata file generated after compiling a copybook using a dummy program. But it was not helpful. Java copy generation ended in error.
I think Adata file is not poperly generated with right options. Any specific compile options to be used and also the dummy cobol program is enough to be a simple one
or need a Cobol+CICS program.
Kindly help me and suggest .
------------------------------
SrinivasaShashikanth Kotla
Original Message:
Sent: Wed June 17, 2020 02:16 AM
From: Yuan Jie Song
Subject: How Do You Create an ADATA File when Compiling a COBOL Copybook?
Disclaimer: This post is migrated from IBM Developer Answers that is no longer in use. Its original author is AnthonyKoogler, posted on Apr 17, 2019.
How Do You Create an ADATA File when Compiling a COBOL Copybook?
A user is trying to use IBM Record Generator for Java to create helper classes from a COBOL copybook.
We tried to follow the instructions in the following link. https://www.ibm.com/support/knowledgecenter/SSMQ4D_3.0.0/documentation/cobol_rcg_create_sysadata.html
Since we are not using a full COBOL program, the compiler complains about missing components in the copybook.
Is there a way to use the compiler to generate the ADATA file from a copybook?
-----------------------------------------------------------
Question asked by AnthonyKoogler on Apr 17, 2019
-----------------------------------------------------------