PCL Global variable is set wrong
search cancel

PCL Global variable is set wrong

book

Article ID: 46671

calendar_today

Updated On:

Products

FAQS - Automated Systems Operation

Issue/Introduction

How to set a Global var at the start of a job, then change the value of the VAR at the end of the job.

|call $PVAR &varname=ACTIVE

then later 

|call $PVAR &varname=INACTIVE

The var is set to INACTIVE before the job runs.

 

Environment

Release: 5.1   
Component: FAQS-Automated Systems Operation

Resolution

PCL does evaluate VARs at job submission time, so when the job runs, the last value for the Global Var will be used.

Use ECL (execution control language) in this case.

// SET GVAR varname 'value'