I am facing some memory overlay issues(feel so) .I have "A" program which calls "B" program
"A" program's linkage section is passed to "B" program.Whether both share the same memory section?
The calling and called program uses the same no. of variables.
But linkage section has more variables in the "B" program than the called program.Whether that cause a problem?
For e.g. Copybook group variable(not passed from "A" program,but present in linkage section of "B" PROGRAM)is initialized in "B" program.
For e.g.
"A" program
Identification division
environment division
data division
linkage section
01 ls-parms(includes pointer area)
copy a1
copy a2
copy a3
procedure division
.....
call "B" program using ls-parms
......
"B" program
Identification division
environment division
data division
linkage section
01 ls-parms(includes pointer area)
copy c1
copy c2
copy c3
copy c4
procedure division
.....
set address of c4 using pointer area
initialize c4-area
......
When initializing c4-area ,a1's area is getting corrupted....not sure what is the issue....
Can you please help me out on this...