CORE
mf_getquotedstr.sas File Reference

Adds custom quotes / delimiters to a space delimited string. More...

Go to the source code of this file.

Detailed Description

Adds custom quotes / delimiters to a space delimited string.

Can be used in open code, eg as follows:

%put %mf_getquotedstr(blah   blah  blah);

which returns:

'blah','blah','blah'

Parameters
in_strthe unquoted, spaced delimited string to transform
dlmthe delimeter to be applied to the output (default comma)
quotethe quote mark to apply (S=Single, D=Double). If any other value than uppercase S or D is supplied, then that value will be used as the quoting character.
Returns
output returns a string with the newly quoted / delimited output.
Version
9.2
Author
Allan Bowe

Definition in file mf_getquotedstr.sas.