Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us