Page History
...
Within an expression or condition a set of operators can be used. These are as follows:
Operator | Description |
|---|---|
( | Open bracket |
) | Close bracket |
+ | Add |
- | Subtract |
/ | Divide |
* | Multiply |
= | Compare equal |
^= | Compare not equal. See Note: |
< | Compare less than |
<= | Compare less than or equal to |
> | Compare greater than |
>= | Compare greater than or equal to |
*EQ | Compare equal |
*NE | Compare not equal |
*LT | Compare less than |
*LE | Compare less than or equal to |
*GT | Compare greater than |
*GE | Compare greater than or equal to |
AND | And |
OR | Or |
*AND | And |
*OR | Or |
...
GROUP_BY NAME(#PRODUCT) FIELDS(#PRODNO #DESC #PRICE
#QOH #TAX)
BEGIN_LOOP
DOUNTIL COND('#IO$STS = OK')
REQUEST FIELD(#PRODNO)
FETCH FIELDS(#PRODUCT) FROM_FILE(PROMST)
WITH_KEY(#PRODNO)
ENDUNTIL
DISPLAY FIELDS(#PRODUCT)
END_LOOP
| Anchor | ||||
|---|---|---|---|---|
|
| Note |
|---|
Note: Due to translation table issues between IBM i and PC platforms (ASCII/EBCDIC), using 5250 terminals or 5250 emulation mode terminals users should be very careful when using the ^= Compare not equal expression, which can be presented as ^= or ¢= or ¬= depending on the terminal/keyboard used during edit. Use the *NE expression instead. |