Hi,
For calling subprograms I use "dynamic calls". At run-time I get problems with "insufficient storage". The coding looks like:
PROGRAM A.
MOVE "B" TO PGM
CALL PGM USING parameter
CANCEL PGM
.
PROGRAM B.
MOVE "C" TO PGM
CALL PGM USING parameter
CANCEL PGM
statements
GOBACK
.
PROGRAM C.
statements
GOBACK
.
It seems that after the calling SEVERAL times a subprogram, the called program is still (everywhere) in the storage, but the link doesn't exists anymore...Is there any way to give the used storage free after calling/executing the sub-program(s) by using a COBOL-statement or adding a JCL-option during compilation/run-time, because it seems that for each called subprogram he stores the program in his storage.....after a while, the storage get full.....
Thanks in advance!
For calling subprograms I use "dynamic calls". At run-time I get problems with "insufficient storage". The coding looks like:
PROGRAM A.
MOVE "B" TO PGM
CALL PGM USING parameter
CANCEL PGM
.
PROGRAM B.
MOVE "C" TO PGM
CALL PGM USING parameter
CANCEL PGM
statements
GOBACK
.
PROGRAM C.
statements
GOBACK
.
It seems that after the calling SEVERAL times a subprogram, the called program is still (everywhere) in the storage, but the link doesn't exists anymore...Is there any way to give the used storage free after calling/executing the sub-program(s) by using a COBOL-statement or adding a JCL-option during compilation/run-time, because it seems that for each called subprogram he stores the program in his storage.....after a while, the storage get full.....
Thanks in advance!