Hi
For Bash you do not need an external interpreter.
In a Unix Job its fair enough using e.g. :REGISTER_VARIABLE TEST#,$HOME
The Variable &TEST# is available in POST_PROCESS, NOT in Process.
Reason: Automic Script is processed prior all JCL (=OS) commands
So in your case it does first Print &TEST# - empty!
and afterwards the register command on OS..
=> Put the print to Post_Process, delete the BEGIN_EXT... section and it will work.
Simple Example - unix Job, process:
:REGISTER_VARIABLE TEST#,$HOME
Post_process:
:PRINT "Test: &TEST#"
Report:
Registered variable: 'T' TEST#=/home/uc4
Post_Process:
2018-04-20 14:38:44 - U00020206 Variable '&TEST#' was stored with value '/home/uc4'.
2018-04-20 14:38:44 - U00020408 Test: /home/uc4
cheers, Wolfgang