Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the differences between calling a program, transaction ‘with return’ and ‘without return’ and how can each be accomplished?

0
Posted

What are the differences between calling a program, transaction ‘with return’ and ‘without return’ and how can each be accomplished?

0

Program SUBMIT |() [AND RETURN] []. If you use AND RETURN, the system stores the data of the calling executable program and returns to the calling after processing the called program. The system resumes executing the calling program at the statement following the call. If you omit the AND RETURN addition, all data and list levels of the calling program (the entire internal session) are deleted. After the called executable program has finished, control returns to the level from which you started the calling program. Transaction CALL TRANSACTION [AND SKIP FIRST SCREEN] [USING ]. This statement saves the data of the calling program, and starts transaction . At the end of the transaction, the system returns to the statement following the call in the calling report. LEAVE TO TRANSACTION [AND SKIP FIRST SCREEN]. This statement ends the calling program and starts transaction . This deletes the call stack (internal sessions) of all previous

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.