What is the difference between link and xctl in cics




















Also, the calling program does not expect control to be returned. Hope this helps, Cheers, Ankur. Posted: Thu May 19, pm. Posted: Sat May 21, pm. However, it can not be replacement for XCTL. CALL can be used to transfer more than 32K between the calling and called programs. Regards, Sarma. Posted: Fri Jun 03, pm. Hi, Actually there are three ways to call a subprogram: 1. Using Call statement 2.

Using Link Statement 3. Using XCTL statement. If you are using the Call statement, then everytime at the compilation time you have to link edit to the called program. And every calling program will have its own copy of the called program. In this case, there will be 3 copies of ProgD for each of the calling program i. As in CICS, programs are re-enterrant, therefore every program will have its own area of the called program but there would be only one and single copy of the called program shared by all of the calling programs.

So the difference in terms of efficiency. No doubt, in Call you will get more efficiency as every called program will have its own copy of the called program but it will be at a great cost to the CICS system in term of resources. I hope this information will be enough to clear your doubts. Still if someone has any input, please let me know. Thanks, Abhishek. Posted: Sun Jun 05, am. Hi, What you said is correct w.

However, it is not so with dynamic call. I suggest a simple test. Create and compile PGMA. It calls PGMB. However, PGMB is not yet compiled. If it compiles then assumption of copy is incorrect. Crate and compile PGMB. Both are Tranfering control from one program to another program where as link sends the control from one level to another level and expect the control to be returned back but XCTL does not expect the control should be returned back. The LINK command calls the sub rogram at the next lowest logical level.

The main program remains in memory. The XCTL command transfers control to the sub program at the same logical level. The main program is released from memory.

The LINK command is used to pass control from an application program at one logical level to another application at the next lower logical level. The calling expects the control to be returned to it. The XCTL command is used to pass control from one application program to another application program at the same logical level.

Active Oldest Votes. Improve this answer. Bruce Martin Bruce Martin 10k 1 1 gold badge 24 24 silver badges 36 36 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Explaining the semiconductor shortage, and how it might end.

Does ES6 make JavaScript frameworks obsolete? Featured on Meta.



0コメント

  • 1000 / 1000