Error Message :
U01001308 Variable 'HOSTNAME#' has not yet been defined.
If using a Host Group (HOSTG) in mode ALL, the REGISTER_VARIABLE and PUBLISH commands do not publish into a JOBP.
Investigation
1. Create a UNIX job with the following: Attributes:
Create a HOSTG with 1 Unix Agent.
Process Tab:
:register_variable job_name#,&$NAME#
:register_variable node#,&$AGENT#
:register_variable HOSTNAME#,$HOSTNAME
Post Process Tab:
:publish &HOSTNAME#,HOSTNAME#,TOP
2. Create a Script: :p &HOSTNAME#
3. Create a JOBP: a. Unix JOB
b. SCRI
Results
HOSTG Mode All: Workflow will show value N.
WorkflowPar will show the job itself.
Hostname will not be published.
Scri will fail with variable not defined.
HOSTG Mode Any: Workflow will show value Y.
WorkflowPar will show the workflow.
Hostname will be published.
Variable will be successful.