How about this?
select trim(ID (format '------------------9') (char(20)) ) from tablesource;
Attachments
Library
Quick Reference
Archives
Sample Index
2001 Indexes