Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Cobol copybook capacity or limitation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Cobol copybook capacity or limitation
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    Post subject:
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    Post subject:
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: 7908
Location: Bellevue, IA

PostPosted: Tue Aug 07, 2012 5:30 am    Post subject:
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

Site Director


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

PostPosted: Tue Aug 07, 2012 9:07 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Aug 07, 2012 11:26 pm    Post subject:
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: 7908
Location: Bellevue, IA

PostPosted: Tue Aug 07, 2012 11:35 pm    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Aug 08, 2012 12:20 am    Post subject:
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: 7908
Location: Bellevue, IA

PostPosted: Wed Aug 08, 2012 12:26 am    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7226

PostPosted: Wed Aug 08, 2012 12:26 am    Post subject: Reply to: cobol copbybook capacity
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us