IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Query regarding XCTL


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rahul_kumar
Warnings : 2

New User


Joined: 24 Jun 2006
Posts: 50

PostPosted: Mon Mar 26, 2007 10:20 am
Reply with quote

Hi,

PGM1 is calling PGM2 through XCTL and then PGM2 is modifying the data and passing the control to PGM1 through XCTL :

EXEC CICS
XCTL PROGRAM ('PGM1')
COMMAREA(AREA-pgm2)
END-EXEC


My doubt is :

1) will the PGM1 program start from the procedure division?
2) value of EIBCALEN in PGM 1 after the Xctl from pgm2 will be equal to 0 or not?
3) I am not able to recieve the values of the map in PGM1 which was sent by PGM2.


Could anyone pls answer this ASAP.
Thanks in Advance.
Regards,
Ansh
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Mar 26, 2007 2:03 pm
Reply with quote

Rahul_kumar wrote:
1) will the PGM1 program start from the procedure division?
Yes.
Quote:
2) value of EIBCALEN in PGM 1 after the Xctl from pgm2 will be equal to 0 or not?
Equal to the length of AREA-pgm2.
Quote:
3) I am not able to recieve the values of the map in PGM1 which was sent by PGM2.
Why not?
Back to top
View user's profile Send private message
Rahul_kumar
Warnings : 2

New User


Joined: 24 Jun 2006
Posts: 50

PostPosted: Mon Mar 26, 2007 2:35 pm
Reply with quote

Hi William,

Thanks for your reply.

I was not able to receive the map as the value was passed from PGM2 to pgm1.It got displayed at that time but when the user pressed some other AID key to perform further funtionality then that value is not getting received.
Is it that when we do recive map then only the values which are inputted through the terminal will be taken and spaces are moved to the other input values?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Mar 26, 2007 3:13 pm
Reply with quote

If PGM2 sent the map and XCTL back to PGM1, there is no reason that PGM1 can not recieve the map back from the user.
The only data returned from the user is those fields that have been altered (or MDTed).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts executing XCTL command in COBOL witho... CICS 10
Search our Forums:

Back to Top