Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Query regarding XCTL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Query regarding XCTL
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: 3158
Location: Tucson AZ

PostPosted: Mon Mar 26, 2007 2:03 pm    Post subject: Re: Query regarding XCTL
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    Post subject: Thanks
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: 3158
Location: Tucson AZ

PostPosted: Mon Mar 26, 2007 3:13 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us