Not every one can submit, JCL or compile a program. I'm giving a possible solution, the viability at a particular site is the OPs problem.
It's an unload, so only the data will be there, in this case a char(10) containing 0000001234, the output file (SYSREC, not SYSOUT) will be FB RECL=10.
You might want to be carefull for null indicators,varchar length fields and so on, if your SQL-statement is a bit more elaborate.
I can explain it to you, but i can not understand it for you.