Previous Page | Next Page

Functions and CALL Routines

URLDECODE Function



Returns a string that was decoded using the URL escape syntax.
Category: Web Tools
Restriction: I18N Level 2

Syntax
Arguments
Details
Length of Returned Variable in a DATA Step
The Basics
Examples
See Also

Syntax

URLDECODE(argument)


Arguments

argument

specifies a character constant, variable, or expression.


Details


Length of Returned Variable in a DATA Step

If the URLDECODE function returns a value to a variable that has not previously been assigned a length, then that variable is given the length of the argument.


The Basics

The URL escape syntax is used to hide characters that might otherwise be significant when used in a URL.

A URL escape sequence can be one of the following:

Operating Environment Information:   In operating environments that use EBCDIC, SAS performs an extra translation step after it recognizes an escape sequence. The specified character is assumed to be an ASCII encoding. SAS uses the transport-to-local translation table to convert this character to an EBCDIC character in operating environments that use EBCDIC. For more information see TRANTAB= System Option in SAS National Language Support (NLS): Reference Guide.   [cautionend]


Examples

SAS Statements Results
x1=urldecode ('abc+def');
put x1;
  
abc def
x2=urldecode ('why%3F');
put x2;
  
why?
x3=urldecode ('%41%42%43%23%31');
put x3;
  
ABC#1


See Also

Function:

URLENCODE Function

Previous Page | Next Page | Top of Page