Padding a Character Field Using str

In Adaptive Server version 15.7 the decimal parameter of the str function has been extended to allow a field to be padded with a specified character or numeric.

See the Reference Manual: Building Blocks.