MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PASSING DATA > 32 K

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
Gary_Fsee
Beginner


Joined: 03 Jan 2005
Posts: 3
Topics: 2

PostPosted: Thu Jan 13, 2005 12:06 am    Post subject: PASSING DATA > 32 K Reply with quote

Hi,

I have this CICS COBOL program that LINKS to a program BY REFERENCE. I want to send and receive data from the Calling program. The called program currently receives the data in the DFHCOMMAREA and has a storage as

01 DFHCOMMAREA.
05 WS-PASS-TEXT PIC X(32765).
05 WS-PASS-LEN PIC S9(04) COMP.

The subprogram does some parse logic and passes data and length back the called program.

Is there a way to pass data > 32K in COMMAREA? I know this can be done another way by passing the ADDRESS of WS-PASS-TEXT (CALL BY CONTENT) to the DFHCOMMAREA; can anyone give a simple example to do this?

Thanks
Gary
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Thu Jan 13, 2005 6:36 am    Post subject: Reply with quote

Gary_fsee,

Here is an example of passing 40k to subprogram.

Main pgm:

Code:

WORKING-STORAGE SECTION.
01  WS-DATA.
    05  WS-COMMAREA-REC.
        10  WS-COMMAREA-LGTH PIC S9(09) BINARY.
        10  WS-COMMAREA      PIC  X(40960).
    05  WS-POINTER           POINTER.


MOVE SPACES TO WS-COMMAREA-REC

SET WS-POINTER TO ADDRESS OF WS-COMMAREA-REC

MOVE LENGTH OF WS-COMMAREA TO WS-COMMAREA-LGTH

EXEC CICS LINK
          PROGRAM ('PASSPGM')
          COMMAREA(WS-POINTER)
          END-EXEC.



PASSPGM
Code:


LINKAGE SECTION.
01  DFHCOMMAREA.
    05  LS-POINTER POINTER.
01  LS-COMMAREA-REC.
    05  LS-COMMAREA-LGTH PIC S9(09) BINARY.
    05  LS-COMMAREA      PIC X(16777215).

IF  EIBCALEN NOT < LENGTH OF DFHCOMMAREA
    SET ADDRESS OF LS-COMMAREA-REC TO LS-POINTER
ELSE
    PERFORM CICS-RETURN
END-IF.


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
darapradeep
Beginner


Joined: 12 Feb 2005
Posts: 5
Topics: 2

PostPosted: Wed Mar 23, 2005 4:25 am    Post subject: commarea Reply with quote

HI,
please tell me what is limit of COMMAREA length?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Wed Mar 23, 2005 4:32 am    Post subject: Reply with quote

darapradeep,

Please search before posting. Check the 3rd post in this topic

http://www.mvsforums.com/helpboards/viewtopic.php?t=153&highlight=limit+commarea

Hope this helps...

Cheer

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Wed Mar 23, 2005 11:45 am    Post subject: Reply with quote

kolusu,
A follow-up question on this subject. I came across a note that said CICS can have 32K as the upper limit in the Commarea request but can only respond back upto 24K. Basically, 32K is only one way into the system. Is this a valid statement. I came accross this on another board long time ago and not from MVS manuals. Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Wed Mar 23, 2005 9:18 pm    Post subject: Reply with quote

Suresh kumar,

Sorry for the late response. Well you can overcome the 32k Commarea size limit using the Container facilities of the Business Transaction Services (BTS) component of CICS. May be that is what they are refering on the other board.

Here is a link to that white paper.

http://www-3.ibm.com/software/htp/cics/library/whitepapers/BigCommarea.pdf

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group