SAS 9.1.3 Language Reference: Concepts, Third Edition, Volumes 1 and 2

Understanding When CEDA Is Used to Process a File

Because CEDA translation is transparent, you might not be aware when CEDA is being used. However, knowing when CEDA is used could be helpful, for example, because CEDA translation may require additional resources.

CEDA is used in these situations:

Note  

Starting in SAS 9, you can tell SAS to display a message when CEDA is being used by setting the SAS system option MSGLEVEL=I:

options msglevel=i;

Here is an example of the message:

INFO: Data file HEALTH.GRADES.DATA is in a format native to another host or the file encoding does not match the session encoding. Cross Environment Data Access will be used, which may require additional CPU resources and reduce performance.

Determining Whether Update Processing Is Allowed

If a file's data representation is the same as that of the processing environment, and if the encoding is compatible with the currently executing SAS session encoding, then you can manually update the file, because CEDA is not needed in order to translate the file. For example, in a Windows environment, if a file was created in a Windows environment or if the OUTREP= option was used to designate the file in Windows data representation, then you can update the file.

Otherwise, if CEDA is used to translate the file, you cannot update it. If you attempt to update the file, then you will receive an error message that says that updating is not allowed. For example:

ERROR: File HEALTH.OXYGEN cannot be updated because its encoding does not match the session encoding or the file is in a format native to another host, such as SOLARIS_32, HP_UX_32, RS_6000_AIX_32, MIPS_ABI.

To determine the data representation and the encoding of a file, you can use the CONTENTS procedure (or the CONTENTS statement in PROC DATASETS). For example, the data set HEALTH.OXYGEN was created in a UNIX environment in SAS 9. The file was moved to a SAS 9 Windows environment, in which the following CONTENTS output was requested :

Output 34.1: CONTENTS Output Showing Data Representation

The SAS System 1 The CONTENTS Procedure Data Set Name HEALTH.OXYGEN Observations 31 Member Type DATA Variables 7 Engine V9 Indexes 0 Created Wednesday, January 22, 2003 10:11:39 Observation Length 56 Last Modified Wednesday, January 22, 2003 10:11:33 Deleted Observations 0 Protection Compressed NO Data Set Type Sorted NO Label Data Representation SOLARIS_32, HP_UX_32, RS_6000_AIX_32, MIPS_ABI Encoding latin1 Western (ISO) Engine/Host Dependent Information Data Set Page Size 5120 Number of Data Set Pages 1 First Data Page 1 Max Obs per Page 90 Obs in First Data Page 31 Number of Data Set Repairs 0 File Name /u/xxxxxx/myfiles/health/\oxygen.sas7bdat Release Created 9.0100A0 Host Created HP-UX Alphabetic List of Variables and Attributes # Variable Type Len 1 AGE Num 8 6 MAXPULSE Num 8 7 OXYGEN Num 8 4 RSTPULSE Num 8 5 RUNPULSE Num 8 3 RUNTIME Num 8 2 WEIGHT Num 8

 

Категории