Community
 
 
 

Radia Support

팔로워 711명
 
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개
0

댓글을 남기려면 로그인하세요.

 
 

Previous 댓글 6개

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.

댓글 작업 고유 링크
Avatar
Paweł Korpisz

Tested but not working :/

댓글 작업 고유 링크
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?

댓글 작업 고유 링크
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

댓글 작업 고유 링크
Avatar
Nathan Truitt

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

댓글 작업 고유 링크
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

댓글 작업 고유 링크

Top Contributors