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 

Info required on DFHCOMMAREA

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


Joined: 17 Jan 2006
Posts: 3
Topics: 2

PostPosted: Tue Jan 17, 2006 6:42 am    Post subject: Info required on DFHCOMMAREA Reply with quote

Hi,
Was asked the following question in an interview:
'I have a CICS program that does not have DFHCOMMAREA defined it. Will this program compile and run.
If yes, why? and if not, why not ?"

Can someone please let me know the answer to the above question.

Thanks,
Rajeev
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Jan 17, 2006 8:01 am    Post subject: Reply with quote

Rajeev,

When you compile a CICS program , the The translator modifies the linkage section by inserting the EIB structure as the first parameter, and inserts declarations of the temporary variables that it requires into the working-storage section. It also inserts a DFHCOMMAREA if the first item in the linkage section is not a DFHCOMMAREA.

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
haree_amrid
Beginner


Joined: 21 Dec 2005
Posts: 9
Topics: 3
Location: INDIA

PostPosted: Tue Jan 17, 2006 9:31 am    Post subject: Reply with quote

Ya Kolusu u r right. Just an addition to your point.

The translator will create the DFHCOMMAREA of PIC x(1) if we didn't coded it in the VERY FIRST of linkage section.
Also it will create the copy book DFHEIBLK. This will be the first one in the linkage. Second one will be COMMAREA. Also it modifies the PROCEDURE DIVISION STATEMENT AS "PROCEDURE DIVISION USING DFHEIBLK DFHCOMMAREA. "

The copy book DFHEIBLK will have all the EXEC Interface Block variable(EIB) which is used for handling CICS. I am providing the copybook DFHEIBLK for reference:-
Code:

01  DFHEIBLK.                   
02    EIBTIME  COMP-3 PIC S9(7).
02    EIBDATE  COMP-3 PIC S9(7).
02    EIBTRNID PIC X(4).       
02    EIBTASKN COMP-3 PIC S9(7).
02    EIBTRMID PIC X(4).       
02    DFHEIGDI COMP PIC S9(4). 
02    EIBCPOSN COMP PIC S9(4). 
02    EIBCALEN COMP PIC S9(4). 
02    EIBAID   PIC X(1).       
02    EIBFN    PIC X(2).       
02    EIBRCODE PIC X(6).       
02    EIBDS    PIC X(8).       
02    EIBREQID PIC X(8).       
02    EIBRSRCE PIC X(8).       
02    EIBSYNC  PIC X(1).       
02    EIBFREE  PIC X(1).       
02    EIBRECV  PIC X(1).       
02    EIBFIL01 PIC X(1).       
02    EIBATT   PIC X(1).       
02    EIBEOC   PIC X(1).       
02    EIBFMH   PIC X(1).       
02    EIBCOMPL PIC X(1).       
02    EIBSIG   PIC X(1).       
02    EIBCONF  PIC X(1).       
02    EIBERR   PIC X(1).       
02    EIBERRCD PIC X(4).       
02    EIBSYNRB PIC X(1).       
02    EIBNODAT PIC X(1).       
02    EIBRESP  COMP PIC S9(8).
02    EIBRESP2 COMP PIC S9(8).
02    EIBRLDBK PIC X(1).

_________________
With Regards,
Hareesh Amrideswaran
Back to top
View user's profile Send private message
rajeev_sjc
Beginner


Joined: 17 Jan 2006
Posts: 3
Topics: 2

PostPosted: Wed Jan 18, 2006 4:36 am    Post subject: Reply with quote

Hi,
Thanks a lot, Kolusu and Hareesh for the answer.

Best Regards,
Rajeev
Back to top
View user's profile Send private message Yahoo Messenger
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