My system uses static batch calls for almost all existing programs. For new programs, however, they want us to use dynamic calls where we can. We are creating some new programs that we want to use dynamic calls for, but we are also calling some existing programs statically.
My question is this...
ProgramA opens a VSAM file
ProgramA dynamically calls ProgramB
ProgramB statically calls ProgramC
ProgramC reads the same VSAM file ProgramA opened
Why am I getting a file status 47 (trying to read a file that was not opened) in ProgramC?
If I change the code so that ProgramB opens the file (with no other changes), then I don't get the error in ProgramC.
Any ideas?
Thanks!
My question is this...
ProgramA opens a VSAM file
ProgramA dynamically calls ProgramB
ProgramB statically calls ProgramC
ProgramC reads the same VSAM file ProgramA opened
Why am I getting a file status 47 (trying to read a file that was not opened) in ProgramC?
If I change the code so that ProgramB opens the file (with no other changes), then I don't get the error in ProgramC.
Any ideas?
Thanks!