Topic
2 replies Latest Post - ‏2012-11-15T08:43:32Z by EberhardRamm
gb12345
gb12345
33 Posts
ACCEPTED ANSWER

Pinned topic RDZ PLI Parser - Problem with OR and Concatenation

‏2012-10-24T10:30:10Z |
We use RDz 8.5.0.1 and use the host code page IBM-1141 (Germany). So we get the exclamation mark (!) as OR sign and the double exclamatation mark (!!) as concatenation sign e.g.:

TRACE: PROC(STR);
DCL STR CHAR(120);
DCL TRC CHAR(1) INIT('1');
DCL 1 BUF,
2 ASA CHAR(001) INIT(' '),
2 OUT CHAR(125);
IF TRC = '1' ! TRC = '2'
THEN DO;
OUT = 'TRACE'!!STR;
WRITE FILE (SYSPRINT) FROM (BUF);
END;
END TRACE;
The PLI parser in the LPEX editor has some problems with this and tells
1. for OR(!): "ERROR TOKEN" unexpected token(s) ignored unexpected character ignored
1. for Concatenation(!!): "InfixOperators" is invalid

I know the workaround to change the host code page to IBM-1140, but we do not want to change the host code page, because our developers also use the IBM-1141-Codepage in the 3270 terminal emulation.

Can anybody help with this issue?

Georg
Updated on 2012-11-15T08:43:32Z at 2012-11-15T08:43:32Z by EberhardRamm
  • SystemAdmin
    SystemAdmin
    1086 Posts
    ACCEPTED ANSWER

    Re: RDZ PLI Parser - Problem with OR and Concatenation

    ‏2012-11-07T22:57:58Z  in response to gb12345
    Hi,

    By default, the PL/I parsing in the RD/z editors expects | as the OR character rather than !.

    You can specify another OR character by using the OR compiler option in a property group.

    If you specify OR('!') in the PL/I compiler options in a property group, then associate the property group, the parsing should work correctly. This should also fix the concatenation problem.

    The PL/I compiler options can be specified by clicking on the PL/I tab, select Procedures and Steps, then choose the PLI step in ELAXFPL1. The Compiler options: field appears in the Step options section.

    Tim Grose
    • EberhardRamm
      EberhardRamm
      15 Posts
      ACCEPTED ANSWER

      Re: RDZ PLI Parser - Problem with OR and Concatenation

      ‏2012-11-15T08:43:32Z  in response to SystemAdmin
      Hello, the next problem with this issue you can read in this entry:
      RDz V8.0.3.3 - Real-time syntax check problem in Debug Source view, dated Oct 05, 2012.
      Best regards Eberhard Ramm, SIBRA GmbH