Community
 
 
 

Radia Support

720 followers
 
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 comments
0

Please sign in to leave a comment.

 
 

Previous 6 comments

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.

Comment actions Permalink
Avatar
Paweł Korpisz

Tested but not working :/

Comment actions 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?

Comment actions 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

Comment actions Permalink
Avatar
Nathan Truitt

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

Comment actions 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

Comment actions Permalink

Top Contributors