Production Ready Macros for SAS Application Developers File Reference

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

Go to the source code of this file.

Detailed Description

Can be used in open code, eg as follows:

put mf_getquotedstr(blah blah blah);

which returns:


in_strthe unquoted, spaced delimited string to transform
dlm=the delimeter to be applied to the output (default comma)
indlm=the delimeter used for the input (default is space)
quote=the 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.
output returns a string with the newly quoted / delimited output.
Allan Bowe

Definition in file