Previous Page | Next Page

Informats

$BASE64Xw. Informat



Converts ASCII text into character data by using Base 64 encoding.
Category: Character
Alignment: left

Syntax
Syntax Description
Details
Examples
See Also

Syntax

$BAS64Xw.


Syntax Description

w

specifies the width of the input field.

Default: 1
Range: 1-32767

Details

Base 64 is an industry encoding method whose encoded characters are determined by using a positional scheme that uses only ASCII characters. Several Base 64 encoding schemes have been defined by the industry for specific uses, such as e-mail or content masking. SAS maps positions 0-61 to the characters A-Z, a-z, and 0-9. Position 62 maps to the character +, and position 63 maps to the character /.

The following are some uses of Base 64 encoding:

The '=' character in the encoded results indicates that the results have been padded with zero bits. In order for the encoded characters to be decoded, the '=' must be included in the value to be decoded.


Examples

input @1 b64exmpl $base64x64.;

Data Line Results
RkNBMDFBNzk5M0JD FCA01A7993BC
TXlQYXNzd29yZA== MyPassword
d3d3Lm15ZG9tYWluLmNvbi9teWhpZGRlblVSTA== www.mydomain.com/myhiddenURL


See Also

Format:

$BASE64Xw. Format

The XMLDOUBLE option of the LIBNAME Statement for the XML engine, in the SAS XML LIBNAME Engine: User's Guide

Previous Page | Next Page | Top of Page