PL/I

PL/I

PL/I

 View Only
  • 1.  IDz zUnit generate testcase fails with errors IBM1350I and IBM1425I

    Posted Tue June 16, 2020 09:56 AM
    Edited by Di Hu Wed June 17, 2020 03:39 AM

    In IBM Developer for z Systems (IDz), attempts to generate a zUnit testcase from a PLI program with NOT symbol ¬ and macros result in errors:a- IBM1350I E Character with decimal value 194 does not belong to the PL/I character set.b- IBM1425I E There is no compiler directive %DECLARE.

    For example with a program like: TSTNOT1: PROC(ARG1) OPTIONS(MAIN);

    DCL ARG1 CHAR(14) VARYING; DCL MSG1 CHAR(30) VARYING; %DCL VAR2 CHAR; DCL VAR1 CHAR; 1/****************************/ /* MAIN PROGRAM ROUTINE */ /****************************/ MSG1="Hello PLI 1"; IF VAR1 ¬= ' ' THEN DO; ARG1="ARG1 set"; END; END;


    (Disclaimer: This post is migrated from IBM Developer Answers that is no longer in use. Its original author is
    Olivier Gauneau, posted on 4 Apr 2018.)


  • 2.  RE: IDz zUnit generate testcase fails with errors IBM1350I and IBM1425I

    Posted Wed June 17, 2020 05:34 AM

    These errors can happen if UTF-8 code page is used and if MACRO option are missing on the PLI importer preferences.

    They can be solved by

    • Checking MACRO option under menu Window >Preferences >Importer >PLI >More PL/I Options.

    • Setting code page(1252) and NOT (¬) symbol under Window >Preferences >Importer >PLI >General and Window >Preferences >Importer >PLI >More PL/I Options.

    • Use Cp1252 as local code page instead of the default UTF-8.


    (Disclaimer: This answer is migrated from IBM Developer Answers that is no longer in use. Its original author is
    Olivier Gauneau, posted on 4 Apr 2018.)


    ------------------------------
    Di Hu
    ------------------------------