Can the IF statement be used in the RUNPARM of GSS to allow for the use of a single RUNPARM across several LPARs?

Document ID : KB000044420
Last Modified Date : 14/02/2018
Show Technical Document Details

Question: 

Can the IF statement be used in the RUNPARM of GSS to allow for the use of a single RUNPARM across several LPARs?

Answer: 

The GSS RUNPARM does not have direct support for IF statements like:

IF &SYSNAME=AMVS

INCLUDE INSIGHTA // Include ADDRESS for CA-Insight for DB2

IF &SYSNAME=BMVS

INCLUDE INSIGHTB // Include ADDRESS for CA-Insight for DB2

 

However the following method could be used to accomplish what you want:

SYMBOLS ON

INCLUDE &SYSNAME.INS // Include ADDRESS for CA-Insight for DB2

 

The “SYMBOLS ON" is place near the start of the RUNPARM so that it is active for the rest of the processing.  The “SYMBOLS ON” statement allows the use of the IBM system symbols.  The IBM “DISPLAY SYMBOLS” console command can be used to see the symbols and their values on the system where it is executed.  The SYMBOLS enhancement was added in a PTF in CA Common Services r11 and r12. It was included with base CCS R14.  

 

As always, please contact CA Technologies support for CA Jobtrac Job Management if you have further questions.