SAS Institute Alert Note SN-006811

From: SAS Technical Support (LISTSERV@VM.SAS.COM)
Date: Mon Feb 11 2002 - 09:39:43 EST

  • Next message: SAS Technical Support: "SAS Institute TS: New Hot Fix Releases"

    SN-006811 ***Alert Note***

    The %distance macro produces an incorrect matrix when the value of an ID
    variable matches a variable name

    Product: SAS/STAT
    Component: Multiple procedures
    Priority: ALERT

      The %distance macro allows you to specify an ID variable in the DATA=
      data set. If any value of the ID variable matches the name of a
      variable used to calculate the distance matrix, the resulting distance
      matrix will be incorrect.

      In the example below, NAME is the ID variable. The variables used to
      create the matrix are X, Y, and Z. Since one value of the variable NAME
      is also 'X', the computed matrix will be incorrect.

        data test;
              input name $ 1 @3 x y z;
              cards;
        x 1 2 3
        a 2 1 2
        b 5 4 3
        ;

        title2 'incorrect results';
        %distance ( data=test,
                   options=print,
                    method=dcorr, id=name,
                    var=x y z);

      To circumvent the problem, make sure that none of the values of your ID
      variable match the name of a variable used in the values for the VAR=
      keyword parameter.

      It is not sufficient to simply examine the resulting matrix. To
      determine if there is a problem with your analysis, you will need to
      inspect the DATA= data set. No warnings or errors appear.

    Keywords:
      incorrout incorrstat distance macro id var
      the %distance macro produces an incorrect matrix when the value of an id
      variable matches a variable name
      006811 6811

    SAS Note Revised On: Thu, 7 Feb 2002

    System Version Reported Version Fixed

    AIX 64 bit 8.2 TS2M0
    AIX/6000 7 TSB1
    AIX/6000 8 TSM0
    AIX/6000 8.1 TS1M0
    AIX/6000 8.2 TS2M0
    VM/ESA (CMS) 7 TSB1
    VM/ESA (CMS) 8 TSM0
    VM/ESA (CMS) 8.1 TS1M0
    VM/ESA (CMS) 8.2 TS2M0
    Compaq Tru64 UNIX 7 TSB1
    Compaq Tru64 UNIX 8 TSM0
    Compaq Tru64 UNIX 8.1 TS1M0
    Compaq Tru64 UNIX 8.2 TS2M0
    HP-UX Operating Systems 7 TSB1
    HP-UX Operating Systems 8 TSM0
    HP-UX Operating Systems 8.1 TS1M0
    HP-UX Operating Systems 8.2 TS2M0
    HP-UX 64 bit 8.2 TS2M0
    Intel ABI 8 TSM0
    Intel ABI 8.1 TS1M0
    Intel ABI 8.2 TS2M0
    Linux 8.2 TS2M0
    MIPS ABI 8 TSM0
    MIPS ABI 8.1 TS1M0
    MIPS ABI 8.2 TS2M0
    OS/390 (MVS) 7 TSB1
    OS/390 (MVS) 8 TSM0
    OS/390 (MVS) 8.1 TS1M0
    OS/390 (MVS) 8.2 TS2M0
    IBM OS/2 7 TSB1
    IBM OS/2 8 TSM0
    IBM OS/2 8.1 TS1M0
    IBM OS/2 8.2 TS2M0
    Solaris 7 TSB1
    Solaris 8 TSM0
    Solaris 8.1 TS1M0
    Solaris 8.2 TS2M0
    Solaris 64 bit 8.2 TS2M0
    OpenVMS VAX 7 TSB1
    OpenVMS VAX 8 TSM0
    OpenVMS VAX 8.1 TS1M0
    OpenVMS VAX 8.2 TS2M0
    OpenVMS Alpha 7 TSB1
    OpenVMS Alpha 8 TSM0
    OpenVMS Alpha 8.1 TS1M0
    OpenVMS Alpha 8.2 TS2M0
    Windows NT 7 TSB1
    Windows NT 8 TSM0
    Windows NT 8.1 TS1M0
    Windows NT 8.2 TS2M0
    Windows 2000 Datacenter Server 8 TSM0
    Windows 2000 Datacenter Server 8.1 TS1M0
    Windows 2000 Datacenter Server 8.2 TS2M0
    Windows 2000 Professional 8 TSM0
    Windows 2000 Professional 8.1 TS1M0
    Windows 2000 Professional 8.2 TS2M0
    Windows 2000 Server and Advanced Server 8 TSM0
    Windows 2000 Server and Advanced Server 8.1 TS1M0
    Windows 2000 Server and Advanced Server 8.2 TS2M0
    Windows 95 7 TSB1
    Windows 95 8 TSM0
    Windows 95 8.1 TS1M0
    Windows 95 8.2 TS2M0
    Windows 98 8 TSM0
    Windows 98 8.1 TS1M0
    Windows 98 8.2 TS2M0
    Windows ME 8.2 TS2M0

    No Fixes Available

    +-------------------------------------------------------------------------
    + NOTE: To unsubscribe you can reply to this mail with:
    + "SIGNOFF tsnews-l"
    + as the only text in the body of the message (without the double quotes).
    + If you have any questions please send them to SUPPORT@SAS.COM
    +-------------------------------------------------------------------------



    This archive was generated by hypermail 2b29 : Mon Feb 11 2002 - 09:56:54 EST