NATIONAL-OF and DISPLAY-OF



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

NATIONAL-OF and DISPLAY-OF

Postby Navya Maloth » Wed Nov 28, 2012 7:03 am

Hi,

I have a question regarding cobol string function NATIONAL-OF and DISPLAY-OF giving error while using strings which are of PIC X(4000000) size. My requirement is to convert a string having PIC x(4000000) into unicode format.
MOVE FUNCTION DISPLAY-OF (FUNCTION NATIONAL-OF
(WSV-MQ-DUMMY1(1:WSV-MESSAGE-LEN) , 500) , 1208)
The above is working for X(1000000) .

The error while using X(4000000) :
CEE0813S Insufficient storage was available to satisfy a get storage (CEECZST) request.
The traceback information could not be determined.
<> LEAID ENTERED (LEVEL 06/15/2011 AT 18.20)
<> LEAID PROCESSING COMPLETE. RC=0

How do I resolve this ?

Thanks,
Navya
Navya Maloth
 
Posts: 3
Joined: Wed Nov 28, 2012 6:49 am
Has thanked: 0 time
Been thanked: 0 time

Re: NATIONAL-OF and DISPLAY-OF

Postby Robert Sample » Wed Nov 28, 2012 7:41 am

Provide more storage to the program.

How much storage does your JCL give the program now? And is the program compiled with DATA(31)? Is the program linkage edited / bound with AMODE(31) RMODE(ANY)?
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: NATIONAL-OF and DISPLAY-OF

Postby Navya Maloth » Fri Nov 30, 2012 7:03 am

Hi,

The JCL has REGION=0M. The program compiled has AMODE(31) RMODE(ANY).
Navya Maloth
 
Posts: 3
Joined: Wed Nov 28, 2012 6:49 am
Has thanked: 0 time
Been thanked: 0 time

Re: NATIONAL-OF and DISPLAY-OF

Postby dick scherrer » Fri Nov 30, 2012 7:09 am

Hello and welcome to the forum,

Repeat: is the program compiled with DATA(31)?

Have you talked with your Operations or Scheduling support to ask if a different JOB Class might help?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: NATIONAL-OF and DISPLAY-OF

Postby Robert Sample » Fri Nov 30, 2012 8:21 am

The program compiled has AMODE(31) RMODE(ANY).
This does not answer the question about whether or not the program can use storage above the line (compile option DATA(31) tells you that).

Are you aware that many sites use JES exits to restrict the amount of storage allocated when a programmer uses REGION=0M? If not, then you need to learn that. And the question STILL remains -- how much storage is the program getting already? If you did know about the restriction, then you should not have given the answer you did.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: NATIONAL-OF and DISPLAY-OF

Postby BillyBoyo » Fri Nov 30, 2012 2:37 pm

There is a good description of your error message with Programmer Response suggestions.

Have you tried doing the 4m thing in four 1m-byte chunks? You have nested functions with data of a huge size, and the "strain" of that might be leading to far more storage than necessary being used.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post