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
 

 

Size Limit for 01 level working storage variable

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
a1javeed

New User


Joined: 10 Dec 2005
Posts: 20
Location: KUWAIT

PostPosted: Sat Jul 01, 2006 7:44 pm    Post subject: Size Limit for 01 level working storage variable
Reply with quote

Hi All
Is there any maximum limit to define a field in working storage at 01 Level
for example
Can i define 01 header-rec pic x(999999999)?

Thanks in advance
Back to top
View user's profile Send private message

twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Mon Jul 03, 2006 2:15 pm    Post subject:
Reply with quote

Hi Javeed,

Yes, there's a maximum limit for it, but unfortunately I can't recollect it.

I had a structure like the one given below in the program:

01 WS-TAB1.
10 WS-TAB1-VAR PIC X(32000) OCCURS 500.

At compilation, I received an error message that you can't exceed xxxxxxxx bytes for a variable.

Best way: include a variable like the one shown above and compile it, the compile listing will give you the exact figure!!

Hope this helps.

Cheers, Twissi.
Back to top
View user's profile Send private message
manikant pathak

New User


Joined: 09 May 2005
Posts: 37
Location: bangalore

PostPosted: Mon Jul 03, 2006 7:24 pm    Post subject:
Reply with quote

Hi Javed,

As far as my Knowledge goes the Maximum size for COBOL data items is 16 Mb.

FYI..

Max size for Working Storage/Linakge and Local storage section is 128 Mb.

thanks and regards,

MKP
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Wed Jul 05, 2006 4:43 pm    Post subject:
Reply with quote

Hi,
manikant pathak wrote:
Hi Javed,

As far as my Knowledge goes the Maximum size for COBOL data items is 16 Mb.

FYI..

Max size for Working Storage/Linakge and Local storage section is 128 Mb.

thanks and regards,

MKP


Does that mean COBOL data items are different than Working Storage/Linakge and Local storage section ?

Thanks,
Parikshit
Back to top
View user's profile Send private message
a1javeed

New User


Joined: 10 Dec 2005
Posts: 20
Location: KUWAIT

PostPosted: Thu Jul 06, 2006 7:37 pm    Post subject:
Reply with quote

Hi,
Thank you for your information will try it out.

Javeed
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
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm


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