Community
 
 
 

Radia Support

711 abonnés
 
Avatar
Paweł Korpisz

Multiple values in ZSTOP

Hi,

Is there an option to use OR switch in ZSTOP parameters?

I would like to check below configuration WORDPOS(EDMGETV(ZCONFIG,ZHDWCTYP),'LAPTOP')=0 OR POS('PLD',UPPER(EDMGETV(ZCONFIG,ZHDWCOMP)))=0

6 commentaires
0

Vous devez vous connecter pour laisser un commentaire.

 
 

Previous 6 commentaires

Avatar
Arne Halsteinslid

Certainly, the vertical bar symbol is used in REXX statements for a logical OR.

(WORDPOS(EDMGETV(ZCONFIG,ZHDWCTYP),'LAPTOP')=0)|(POS('PLD',UPPER(EDMGETV(ZCONFIG,ZHDWCOMP)))=0)

I have added two sets of () as well.

Actions pour les commentaires Permalien
Avatar
Paweł Korpisz

Tested but not working :/

Actions pour les commentaires Permalien
Avatar
Arne Halsteinslid

There is no syntax error in the statement.

It will evaluate to True if ZCONFIG,ZHDWCTYP does not contain the word 'LAPTOP' OR if ZCONFIG,ZHDWCOMP translated to uppercase does not contain the string 'PLD'.

In other words, it will stop resolution if machine is not a laptop, or, if machine hostname does not contain the string 'PLD'.

Is this what you wanted?

Actions pour les commentaires Permalien
Avatar
Paweł Korpisz

Correct. I've tested on my lab seperatly WORDPOS(EDMGETV(ZCONFIG,ZHDWCTYP),'LAPTOP')=0 and POS('PLD',UPPER(EDMGETV(ZCONFIG,ZHDWCOMP)))=0 and it was work fine but not with | OR switch

Actions pour les commentaires Permalien
Avatar
Nathan Truitt

Try it with || in place of OR between the expressions.

Actions pour les commentaires Permalien
Avatar
Arne Halsteinslid

My suggestion sure works in my 9.1 CP1 lab env.

I presume you have set the ZSTOP at the ZSERVICE level.

Here are my test results, in my case I am dealing with a DESKTOP whose hostname is NO00999535CD89.

(WORDPOS(EDMGETV(ZCONFIG,ZHDWCTYP),'DESKTOP')=0)|(POS('999',UPPER(EDMGETV(ZCONFIG,ZHDWCOMP)))=0)
Evaluates to False, application installed

(WORDPOS(EDMGETV(ZCONFIG,ZHDWCTYP),'LAPTOP')=0)|(POS('999',UPPER(EDMGETV(ZCONFIG,ZHDWCOMP)))=0)
Evaluates to True, application not installed

(WORDPOS(EDMGETV(ZCONFIG,ZHDWCTYP),'DESKTOP')=0)|(POS('909',UPPER(EDMGETV(ZCONFIG,ZHDWCOMP)))=0)
Evaluates to True, application not installed

(WORDPOS(EDMGETV(ZCONFIG,ZHDWCTYP),'LAPTOP')=0)|(POS('909',UPPER(EDMGETV(ZCONFIG,ZHDWCOMP)))=0)
Evaluates to True, application not installed

Actions pour les commentaires Permalien

Top Contributors