Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Migration Guide

IBM2611, IBM2612: duplicate whens

When compiling some of your "working" code, you may also see a message such as one of the following:

  IBM2611I W   The binary value ... appears in more than one WHEN clause.

  IBM2612I W   The character string ... appears in more than one WHEN clause.

This message is easier to understand than some of the others discussed in this section and would be produced by code such as the following:

   SELECT( OPT );
     WHEN( 'f','F' )
       BUFROM = ETOS(OPTARG);
     WHEN( 'T','T' )
       BUTO = ETOS(OPTARG);
     WHEN( 'n','N' )
       MAXRECIN = ETOL(OPTARG);
     WHEN( 'k','K' )
       KFLG = ^KFLG;
     WHEN( 'm','M' )
       MAXERR = ETOL(OPTARG);
     OTHERWISE;
       /* ungueltige Option */
   END;

The message is indicating that the second WHEN clause above is probably meant to be coded as WHEN( 't', 'T' )

The old compilers would have issued no message, and perhaps the code as written is not incorrect; however, it would probably be worthwhile to examine closely any code producing this message.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)