space
Previous Page | Next Page

Advanced User Topics for the SAS/ACCESS Interface View Engine for IMS

Understanding Character Set Encoding

IMS does not use character sets or code pages and does not transcode data, so the interpretation of the data is done by SAS. Therefore, the IMS engine must transcode all character data going into an IMS database and all character data returned from an IMS database.

The default encoding behavior is as follows:

The SAS/ACCESS interface to IMS supports the ENCODING= data set option in order to override the encoding for processing a specific input or output file. For example, when you are reading an IMS database using an IMS view descriptor, the ENCODING= data set option enables you to specify an encoding that is different from the session encoding. The data is transcoded from the database encoding to the session encoding as the data is read from the IMS database.

proc print data=imsview (encoding=latin2);
	run;

Some of the reasons that you might want to override encoding behavior by using the ENCODING= data set option are as follows:

For more information about the ENCODING= data set option, see the SAS Language Reference: Dictionary.

space
Previous Page | Next Page | Top of Page