Functions and CALL Routines |
Returns a string that was encoded using the URL escape syntax.
-
argument
-
specifies a character constant, variable,
or expression.
If the URLDECODE function returns a value to a variable that has not previously
been assigned a length, then that variable is given a length of 200 bytes.
The URLENCODE
function encodes characters that might otherwise be significant when used
in a URL. This function encodes all characters except for the following:
Note: The encoded string might be longer than the original
string. Ensure that you consider the additional length when you use this function.
SAS Statements |
Results |
x1=urlencode ('abc def');
put x1;
|
abc%20def
|
x2=urlencode ('why?');
put x2;
|
why%3F
|
x3=urlencode ('ABC#1');
put x3;
|
ABC%231
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.