Community
 
 
 

Radia Support

711 seguidores
 
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 comentários
0

Por favor, entrar para comentar.

 
 

Previous 6 comentários

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.

Ações de comentário Permalink
Avatar
Paweł Korpisz

Tested but not working :/

Ações de comentário Permalink
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?

Ações de comentário Permalink
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

Ações de comentário Permalink
Avatar
Nathan Truitt

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

Ações de comentário Permalink
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

Ações de comentário Permalink

Top Contributors