Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CICS Return VS GOBACK

What happened to the Commarea passed by Program A in both of these examples?

Program A does an EXEC CICS LINK to Program B then Program B uses the GOBACK command

Program A does an EXEC CICS LINK to Program B then Program B uses the EXEC CICS RETURN command

like image 551
SaggingRufus Avatar asked May 05 '26 10:05

SaggingRufus


1 Answers

See https://stackoverflow.com/a/28056695/1927206.

Nothing happens to the commarea.

If B changes it, it is changing the storage that A is aware of.

Only the address of data is "passed" between programs. Only the original data exists, Program B manipulates the original data. There is no copying of data between CALLing and CALLed programs.

Separate from what happens to the data (nothing) the two examples you show have identical behaviour. Use the local standards for your site.

like image 66
Bill Woodger Avatar answered May 07 '26 23:05

Bill Woodger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!