Hello,

I have a question pertaining to how the shell used by the connection pooling 
works as it relates to memory allocation.

In the following cases:

Case 1:  Program 1 has a number of variables and matrixes declared in a common 
section  it calls  Program 2 which has the same common matrixes and variables 
declared.

Ex: Program 1:

COM ABC(100), D,E,F
ARG = "BLAH"
CALL PGM2(ARG)

Program 2:
SUBROUTINE PGM2(ARG)
COM ABC(100), D, E,F
CRT ARG
RETURN

 

Case 2: Program1 doesn't have any common variables declared it calls Program2 
which does have common matrixes and variables declared:

Program 1:  

ARG = "BLAH"
CALL PGM2(ARG)

Program 2:
SUBROUTINE PGM2(ARG)
COM ABC(100), D, E,F
CRT ARG
RETURN


In Case 2, is the common block declared in the stack segment or will the common 
be declared in the same place in both cases ?   


      
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to