CODE_PREFIX

Is it possible to change the CODE_PREFIX programmatically so that objects can be called in a different directory or is this strictly a configuration variable that is loaded when the run time starts.

  • Yes, you can change it programmatically using SET ENVIRONMENT "CODE_PREFIX" TO <value>.

    Keep in mind that if you call 2 or more copies of a program having the same name (but in different locations), the first copy loaded will remain active and in memory until it's canceled. After a CANCEL, the current value of CODE_PREFIX will be used for subsequent CALLs.