Usage Note 22697: "ERROR: Encrypted data is invalid" occurs with PROC CPORT
The following error usually means that data set or catalog you are attempting to CPORT has become corrupted:
"ERROR: Encrypted data is invalid"
It is possible that the file has been renamed using the DOS rename command or Windows File Manager from an .SSD extension to .SD2 for SAS data sets, or .SCT extension to .SC2 for catalogs. To check this, type the following command at the DOS prompt:
type
filename
.sd2 | more
where
filename
is the name of the data set giving the error. This will display the contents of the file to the screen one screen at a time.
If this is a SAS 6.03/6.04 data set, the first line will show something like the following:
SAS 6.03 IBMPC DOS
If this is a SAS 6.08 data set, it will show this:
SAS 6.08.04 WIN 3.10
To correct the problem, you need to rename the file to .SSD and use the V604 engine in SAS for Windows.
libname mydata v604 'c:\mydir';
PROC CPORT library=mydata file='c:\mydir\myfile.dat';
run;
This problem may also cause the SAS for Windows session to abend and display:
Host Internal Error: 21
messages in Windows.
Operating System and Release Information
| SAS System | Base SAS | All | n/a | |
| Windows | n/a | |
*
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: | Usage Note |
| Priority: | low |
| Topic: | Data Management ==> Administration ==> Migration
|
| Date Modified: | 2008-10-03 15:06:05 |
| Date Created: | 2002-12-16 10:56:49 |