There is a program A calling program B. In program B, PCB addresses are found using AIB call. How can we pass this address to program A.
Program B is called many times from A, inorder to avoid using AIB call every time has been decided to pass it back to A and retain the address.
We coded the variable in the using section of A and linkage section of B but the value gets initialized when the control returns to A.
I have sorted out the issue by moving the AIB logic to Program A.
The updates from my teammates are as follows,
When program A is calling program B we pass the address of the variables in the using section, so changing the values in that address would be visible in program A too. But after a AIB call we store the address in the variable, we cannot pass a address back to the calling program, hence these variables would not have any values in program A.