Hello.
When did apostrophes become optional (line 5), and how can the following code compile when the ampersand is missing on line 7? This compiles and the expression at line 7 evaluates to false at runtime:
Thanks in advance,
Mike
When did apostrophes become optional (line 5), and how can the following code compile when the ampersand is missing on line 7? This compiles and the expression at line 7 evaluates to false at runtime:
Code:
0001.00 pgm 0002.00 0003.00 dcl &text *char len(10) 0004.00 0005.00 chgvar &text value(ABC) 0006.00 0007.00 if (text *eq 'ABC') then(sndmsg msg('TEST') tousr(MIKE)) 0008.00 0009.00 endpgm
Mike
Comment