Problem Note 57881: When you use PROC SORT to sort encrypted data stored in a metadata-bound library, you receive "ERROR: Missing ENCRYPTKEY option on member..."
If your table is in a metadata-bound library and you have specified encryption, you might receive the following error when trying to sort it:
ERROR: Missing ENCRYPTKEY option on member WORK.SORTTMP000000000000000000001.DATA. ;
The error occurs when you use the SORT procedure under the following conditions:
- You have DATA= and OUT= tables.
- You have either KEEP or DROP data set options on the input DATA table.
For example, the following code would trigger the error:
proc sort data=mbl_lib.tableName(keep=variableList)
out=outputTable ;
by byVariableList ;
run ;
There are several workarounds:
- Add the ENCRYPTKEY=key data set option after the KEEP or DROP data set options:
proc sort data=mbl_lib.tableName(keep=variableList encryptkey=key)
out=outputTable ;
by byVariableList ;
run ;
- Move the KEEP or DROP data set options to the output table:
proc sort data=mbl_lib.tableName
out=outputTable(keep=variableList) ;
by byVariableList ;
run ;
- Use an SQL procedure instead of PROC SORT:
proc sql ;
create table outputTable as
select variableList
from mbl_lib.tableName
order by byVariableList ;
quit ;
- If PROC SORT options are required (for example NODUPKEY), use an intermediate SAS VIEW of the table with the KEEP or DROP data set options:
data work.v_inputTable / view=work.v_inputTable ;
set mbl_lib.tableName (keep=variableList) ;
run ;
proc sort data=work.v_inputTable
out=outputTable NODUPKEY ;
by byVariableList ;
run ;
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | Base SAS | Solaris for x64 | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Linux for x64 | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
HP-UX IPF | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
64-bit Enabled Solaris | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
64-bit Enabled HP-UX | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
64-bit Enabled AIX | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Windows 7 Professional x64 | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Windows 7 Enterprise x64 | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows Server 2012 Std | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows Server 2012 R2 Std | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows Server 2012 Datacenter | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows Server 2008 for x64 | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows Server 2008 R2 | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 10 | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 8.1 Pro x64 | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 8.1 Pro 32-bit | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 8.1 Enterprise x64 | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 8 Pro x64 | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 8 Enterprise x64 | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft® Windows® for x64 | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.4 | | 9.4 TS1M0 | |
z/OS 64-bit | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
z/OS | 9.4 | 9.4_M4 | 9.4 TS1M0 | 9.4 TS1M4 |
*
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: | medium |
Date Modified: | 2016-04-13 11:02:32 |
Date Created: | 2016-03-17 06:47:24 |