View previous topic :: View next topic
|
Author |
Message |
zacharti
New User
Joined: 15 Jun 2006 Posts: 13
|
|
|
|
Hi,
I have a question related to defining a cobol copybook. I have one MQ message of 2 MB data, can I define a copybook for this message. The 01 level has some limitations right?.
Enterprise bus is ready to convert the incoming message of 2 MB data to a cobol format, but is there any way I can define a copybook?
Thanks, |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
zacharti
New User
Joined: 15 Jun 2006 Posts: 13
|
|
|
|
so does that mean we can't have a copybook for the 2 MB data? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
zacharti, either you cannot read plain English or you belong on Beginners and Students Forum since the links Dick provided clearly state what the limit for an 01 or 77 level in WORKING-STORAGE and LINKAGE SECTION is, as well as the limits on use of COPY statements. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Have you now clicked on the links DBZ provided?
If not, why not. . . |
|
Back to top |
|
|
zacharti
New User
Joined: 15 Jun 2006 Posts: 13
|
|
|
|
Hi,
I have read thorugh the limitation. But need to understand whether there is any solution from cobol programming side to convert a mq message whihc is more that 32KB. Can any one explan me if I need to accept a message which is more than 32KB via batch Cobol program. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
It appears we have a bit of a communication challange here. . .
Quote: |
whether there is any solution from cobol programming side to convert a mq message whihc is more that 32KB. |
How would a message be "converted"?
Does the queue now have a message this long? If yes, how did it get there? What happens when you try to use it in the batch program? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
You are asking MQ questions on the COBOL forum. There is definitely a communications gap since your question that you have asked multiple times has been answered multiple times, yet you keep asking.
Enterprise COBOL supports data variables up to 128 MB in size (minus a byte) so a 2 MB variable is well within the limits. I, personally, have done XML parsing on a single variable that is 10 million bytes (PIC X(10000000) in COBOL terms) so I know there's no problems with using that. And since code in a copybook becomes part of the program when compiled, there is no issue with putting a PIC X(10000000) variable in a copy book and compiling it. So what issues are you having? Post code with error messages or more detail, or I'll lock this topic. |
|
Back to top |
|
|
zacharti
New User
Joined: 15 Jun 2006 Posts: 13
|
|
|
|
Sorry,, for asking MQ questions in Cobol forum,
We don't have enterprise cobol, we use VSCOBOL . Isn't there a 32kb limitation in cobybbok. with my understanding i hope we can't define a 01 variable with more than 32KB. so if I havea message of 2MB, can I convert to a copybook?
Sorry I am new to MQ , |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
with my understanding i hope we can't define a 01 variable with more than 32KB |
why would you continue to have this mis-understanding
after you were provided a link
for the VS COBOL II compiler limits?
and there are no limits to a copybook other than what limits are imposed on a program.
you need to learn what a copybook is.
is this a batch program or a cics program?????????????????? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
At the top of the page is a link to "IBM Manuals". The first of these are the COBOL manuals for VS COBOL. Look in the compiler limits for maximum field size. . .
I'm not sure why you are hung up on "copybook". If a variable is valid in the code, it should be exactly the same in a copybook. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
The ONLY place there is a 32KB limitation is within CICS -- and since you are doing batch programming, not CICS, that limit does not apply to you. Even VS COBOL II supports a single variable limit well beyond what you need to access.
I am locking this topic since you're not listening to anything you are being told. You need to go to your site and actually code up and test things rather than just repeatedly ask the same questions over and over and over and over and over and .... |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Code: |
Block size of COPY library | 32,767 bytes |
I hope that is not the confusion. |
|
Back to top |
|
|
|