diff --git a/all.sas b/all.sas index e6f95df..4ba3bd4 100644 --- a/all.sas +++ b/all.sas @@ -577,11 +577,18 @@ options noquotelenmax; @brief Adds custom quotes / delimiters to a delimited string @details Can be used in open code, eg as follows: - %put %mf_getquotedstr(blah blah blah); + %put %mf_getquotedstr(blah blah blah); which returns: > 'blah','blah','blah' + Alternatively: + + %put %mf_getquotedstr(these words are double quoted,quote=D) + + for: +> "these","words","are","double","quoted" + @param in_str the unquoted, spaced delimited string to transform @param dlm= the delimeter to be applied to the output (default comma) @param indlm= the delimeter used for the input (default is space) diff --git a/base/mf_getquotedstr.sas b/base/mf_getquotedstr.sas index 1b73780..f5ba9dc 100755 --- a/base/mf_getquotedstr.sas +++ b/base/mf_getquotedstr.sas @@ -3,11 +3,18 @@ @brief Adds custom quotes / delimiters to a delimited string @details Can be used in open code, eg as follows: - %put %mf_getquotedstr(blah blah blah); + %put %mf_getquotedstr(blah blah blah); which returns: > 'blah','blah','blah' + Alternatively: + + %put %mf_getquotedstr(these words are double quoted,quote=D) + + for: +> "these","words","are","double","quoted" + @param in_str the unquoted, spaced delimited string to transform @param dlm= the delimeter to be applied to the output (default comma) @param indlm= the delimeter used for the input (default is space)