ASA SQL Reference
System Procedures and Functions
System extended stored procedures
Other system extended stored procedures
Builds up a string from a format string and a set of input strings
[ variable = CALL ] xp_sprintf ( out-string,
format-string
[ input-string ] )
None
xp_sprintf builds up a string from a format string and a set of input strings. The format-string can contain up to fifty string placeholders (%s). These placeholders are filled in by the input-string arguments.
All arguments must be strings of less than 254 characters.
The following statements put the string Hello World ! into the variable mystring.
CREATE VARIABLE mystring CHAR(254) ; xp_sprintf( mystring, 'Hello %s', 'World!' )