how to make sure a subroutine is called dynamically ...?
The simplest way it to not tell the compiler what the subroutine name is so the compiler can't tell the linker......
CALL dataname USING...... where dataname is an area in WS containing the subroutine name.
Joined: 31 May 2006 Posts: 200 Location: Netherlands
William already answered your question, If you call the program using literal it will be called statically or if you pass the program name to a working storage varaible and call then it will called dynamically. The other option is to have 'DYNAM' as compiler option