Problem Note 66674: Running the ASTORE procedure in Base SAS® software produces the wrong ID variable in the output table
The output table that is created by the SCORE statement in PROC ASTORE (like the code that is shown below) might not have the correct ID variable.
proc astore;
score data=score_input out=output store="/tmp/class_astore";
run;
This problem occurs in either of these scenarios:
- An ASTORE file is created by the HPFOREST procedure, and the store is created with an ID variable.
- An ASTORE file is created by the HPSVM procedure, and the store is created with an ID variable.
In addition, the problem happens when the variables for the input table that is being scored are in a different order than the order in the data that is used to train the model.
To work around this issue, you can perform either of the following modifications:
- Modify your score input table and make sure that the variable order is the same as the one in the training table.
- Add the COPYVARS=() option to the SCORE statement, as shown below. You need to specify a variable that is not the ID variable.
proc astore;
score data=score_input out=output store="/tmp/class_astore" copyvars=(variable-name);
run;
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Enterprise Miner | Solaris for x64 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Linux for x64 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
HP-UX IPF | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
64-bit Enabled Solaris | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
64-bit Enabled AIX | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Windows 7 Ultimate x64 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Windows 7 Ultimate 32 bit | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Windows 7 Professional x64 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Windows 7 Professional 32 bit | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Windows 7 Home Premium x64 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Windows 7 Home Premium 32 bit | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Windows 7 Enterprise x64 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Windows 7 Enterprise 32 bit | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows Server 2019 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows Server 2016 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows Server 2012 Std | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows Server 2012 R2 Std | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows Server 2012 R2 Datacenter | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows Server 2012 Datacenter | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows Server 2008 for x64 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows Server 2008 R2 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows Server 2008 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows 10 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows 8.1 Pro x64 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows 8.1 Pro 32-bit | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows 8.1 Enterprise x64 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows 8.1 Enterprise 32-bit | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows 8 Pro x64 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows 8 Pro 32-bit | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows 8 Enterprise x64 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft Windows 8 Enterprise 32-bit | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
Microsoft® Windows® for x64 | 15.1 | 15.1 | 9.4 TS1M6 | 9.4 TS1M6 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2021-07-14 07:56:45 |
Date Created: | 2020-09-21 16:31:02 |