SYSVIEW: Variables in CNM4BPRM
search cancel

SYSVIEW: Variables in CNM4BPRM

book

Article ID: 217128

calendar_today

Updated On:

Products

SYSVIEW Performance Management

Issue/Introduction

How to code variables in the CNM4BPRM library? 

Not sure if an '& for a variable name can be used or not.

For example, should it be JOBNAME or &JOBNAME?  Or do both work?

                                        
)IF 'CISQAA06 CISQAA08 CISQAA10' CONTAINS JOBNAME 
   ABEND-NOTIFICATION            SHORT            
)ENDIF  

OR

)IF 'CISQAA06 CISQAA08 CISQAA10' CONTAINS &JOBNAME 
   ABEND-NOTIFICATION            SHORT            
)ENDIF                                         

Environment

 

 

Resolution

The short answer is that JOBNAME and &JOBNAME will both work.
 
In a member, symbolic variables (&varname) can be coded and there are also Control Statements that begin with ')' .
 
For the Control Statement )IF there are predefined keywords and JOBNAME is one of them, so )IF JOBNAME or )IF 'string' CN JOBNAME will work.  However there is also a JOBNAME symbolic variable so &JOBNAME will work as well.  Symbolic variables can be used on control statements and data rows.

If wanting to use say the APPLID variable then needing to code it as )IF &APPLID  because APPLID is not a predefined keyword on the )IF control statement.
 
On that documentation page also note the )DEBUG and )IFTEST control statements that can be used to evaluate the )IF statements to see if they would work as intended without actually changing any of the existing configuration options.
 

Additional Information

The SYSVIEW documentation can be checked at Set Symbolic Variable Substitution On or Off for Control Statements.