A lot depends on how you are trying to export the data from the SQL database to the mainframe. If you use one of the ETL or data connector solutions, you should be able to simply "push" the data across with zero conversion effort.
If you are converting to a flat file to import into a mainframe system that isn't supported by ETL, you'll have to do the conversion on the SQL side because very few mainframe packages deal very well with "human formatted" data, which is about all current generations of SQL engines produce. The major problem here is that you are trying to get the SQL engine to format things in a way that they rarely use (I can't imagine a business user requesting data formatted as 9(10)V99).
Depending on which SQL engine you are using, the syntax will be slightly different. On the chance that you mean SQL Server, I'd use:
PHP Code:
SELECT Replace(Replace(Str(35.25, 13, 2), '.', ''), ' ', '0')
If this doesn't help, post again with more details, and I bet one of the bright folks here will be able to help.
-PatP