DCL symbols (g_test
) aren't shared between processes. Using shared logical names, e.g. in the job table, will work.
More advanced communications, e.g. passing messages, may be done using mailboxes.
EDIT: To clarify, spawn/symbols
will cause symbols to be copied to the subprocess on creation, but that creates a new set of symbols. The parent process then goes its merry way and any symbol updates in either process occur independently.