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 

Hnadling OCCURS clause in DFHCOMMAREA

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
srini_igsi
Beginner


Joined: 12 May 2006
Posts: 41
Topics: 16
Location: Mumbai

PostPosted: Fri Nov 10, 2006 12:43 am    Post subject: Hnadling OCCURS clause in DFHCOMMAREA Reply with quote

Hi,

As an interface, our pgm(Cobol-CICS) receives data from the calling pgm (COBOL-CICS) into the DFHCOMMAREA. But the problem is with the OCCURS clause which is supposed to be in the DFHCOMMAREA.

01 REQ-DAT-BUF-ACN
05 REQ-DAT-BUF-ACN-TYP-ID PIC 9(04).
05 REQ-DAT-ACN-ADD-TBL OCCURS 4 TIMES INDEXED BY ACN-IDX.
10 REQ-DAT-ACN-CODE PIC S9(04)
SIGN LEADING SEPARATE.
88 REQ-DAT-ACN-NONE VALUE 0.
88 REQ-DAT-ACN-DELETE VALUE 1.
88 REQ-DAT-ACN-SAVE VALUE 2.
88 REQ-DAT-ACN-ADD VALUE 3.

10 REQ-DAT-ACN-ADD-TYP PIC S9(04)
SIGN LEADING SEPARATE.
88 REQ-DAT-ACN-NON-BUF VALUE 0.
88 REQ-DAT-ACN-BNA-BUF VALUE 1.
88 REQ-DAT-ACN-PRI-BUF VALUE 2.
88 REQ-DAT-ACN-ALT-BUF VALUE 3.

Here the question is, how the calling pgm may be sending the COMMAREA data and how to handle this OOCURS clause in the Linkage section of my pgm (called pgm).

Thx in advance.
_________________
Thanks,
-Srini
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Nov 10, 2006 1:23 pm    Post subject: Reply with quote

you should use copybooks.

the table is fixed length. after addressing the commarea in the CALLed module, treat it like a table.......
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Nov 10, 2006 1:33 pm    Post subject: Reply with quote

srini_igsi,

Did you ever post a feedback for your queries?

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


Joined: 12 May 2006
Posts: 41
Topics: 16
Location: Mumbai

PostPosted: Sat Nov 11, 2006 2:11 am    Post subject: Reply with quote

Kolusu,

Pl dont mind for posting this Q in this section. Aactually that day I was in hurry and accedentally posted the same in this section. I will make sure to post the Q's in the right sections in future.

Could you pl tell me how the calling prog may be sending the values wrt this OCCURS caluse and how to handle the same in DFHCOMMAREA aswell in Procedure division. One more Q is if I call a sub-pgm using LINK in my pgm, how the response area which will be updated by the called pgm will be available to my pgm.
_________________
Thanks,
-Srini
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database 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