z/OS MVS JCL Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


NOT operator

z/OS MVS JCL Reference
SA23-1385-00

Use the ¬ (NOT) operator to reverse the testing of relational-expressions.

For example, the statements TESTNOTA and TESTNOTB make the same test. The relational expression is true when the return code is between 0 and 8:
   //TESTNOTA  IF  ¬(RC > 8)  THEN
   //TESTNOTB  IF  (RC <= 8)  THEN
The statements TESTNOTC and TESTNOTD make the same test; the relational expression is true when the return code is 0, 1, 2, 3, 4, 5, 6, 7, 9, or 10.
   //TESTNOTC  IF  ¬(RC = 8 | RC > 10)  THEN
   //TESTNOTD  IF  (RC ¬= 8 & RC <= 10)  THEN

Note that the use of the ¬ operator reverses both the logical and comparison operators.

You do not need to code a blank between the ¬ operator and the expression it is reversing.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014