In the Concat function, expressions yielding names are treated like character strings, but globals that have the name values are evaluated. The following example demonstrates that if you have a stored name value, you need to either use Char before storing it in a global, or Name Expr on the global name.
Concat Items() converts a list of string expressions into a single string, with each item separated by a delimiter. If unspecified, the delimiter is a blank. Its syntax is
Munger works many different ways, depending on what you specify for its arguments:
Munger(string, offset, find | length, <replace>);
Find, length, and replace arguments
If you specify a string as the find and specify no replace string, Munger returns the position (after offset) of the first occurrence find string.
If you specify a positive integer as the length and specify no replace string, Munger returns the characters from offset to offset + length.
If you specify a string as the find and specify a replace string, Munger replaces the first occurrence after offset of text with replace.
If you specify a positive integer as the length and specify a replace string, Munger replaces the characters from offset to offset + length with replace.
If you specify a positive integer as the length, and offset + length exceeds the length of text, Munger either returns text from offset to the end or replaces that portion of text with the replace string, if it exists.
If you specify zero as the length and specify no replace string, Munger returns a blank string.
If you specify zero as the length and specify a replace string, the string is inserted before the offset position.
If you specify a negative integer as the length value and specify no replace string, Munger returns all characters from the offset to the end of the string.
If you specify a negative integer for length and specify a replace string, Munger replaces all characters from the offset to the end with the replace string.
The Repeat function makes copies of its first argument into a result. The second (and sometimes a third) argument is the number of repeats, where 1 means a single copy.
The repeat function is compatible with the function of the same name in the SAS/IML language, but is incompatible with the SAS character DATA step function, which repeats one more time than this function.