IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Cobol copybook capacity or limitation


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
zacharti

New User


Joined: 15 Jun 2006
Posts: 13

PostPosted: Tue Aug 07, 2012 4:53 am
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 07, 2012 5:03 am
Reply with quote

here are the limitations for enterprise cobol
These are the VS COBOL II Compiler Limits
Back to top
View user's profile Send private message
zacharti

New User


Joined: 15 Jun 2006
Posts: 13

PostPosted: Tue Aug 07, 2012 5:14 am
Reply with quote

so does that mean we can't have a copybook for the 2 MB data?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Aug 07, 2012 5:30 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Aug 07, 2012 9:07 am
Reply with quote

Hello,

Have you now clicked on the links DBZ provided?

If not, why not. . . icon_confused.gif
Back to top
View user's profile Send private message
zacharti

New User


Joined: 15 Jun 2006
Posts: 13

PostPosted: Tue Aug 07, 2012 11:20 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Aug 07, 2012 11:26 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Aug 07, 2012 11:35 pm
Reply with quote

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
View user's profile Send private message
zacharti

New User


Joined: 15 Jun 2006
Posts: 13

PostPosted: Wed Aug 08, 2012 12:06 am
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 08, 2012 12:16 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 08, 2012 12:20 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Aug 08, 2012 12:26 am
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Aug 08, 2012 12:26 am
Reply with quote

Code:
Block size of COPY library                     | 32,767 bytes


I hope that is not the confusion.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top