Please can someone help me understand, after EXEC CICS START TRANSID is issued from the invoking program, how is the completion of the task checked from the invoking program? What happens to the invoking program.
Please can someone help me understand, after EXEC CICS START TRANSID is issued from the invoking program, how is the completion of the task checked from the invoking program? What happens to the invoking program.
I distilled some sample code, see below.
In our case, the main CICS program would EXEC CICS RUN another transaction (WS-Run-Trancode) as a child process, wait for a while (RESPWAIT seconds), than check if the child is finished. If it has not, discard the results, otherwise, we would move the containers containing the results from the child-channel (Child-Channel-Name) to the channel of out main program (Channel-Name).
It is not necessary to use channels and/or containers.
Working storage fragment:
Program fragment: