I have a main program P1 (CICS). It has a input copybook C1,in which i have a variable C1-acct-id (x(8)). The main program P1 is calling a subprogram P2(COBOL), which has a input copy book C2. C2 contains a variable C2-acct-id (s9(9) comp). Before calling P2, C1-acct-id is moved to C2-acct-id and called using C2 copybook (note its a call and not link or xctl). As soon as the call is done, the C1-acct-id is getting initialized to spaces. I am not initializing C1-acct-id anywhere in the subprog as well i have not used C1-acct-id inside the prog P2.
Please let me know if there could be a reason why the C1-acct-id is getting intialized to spaces.