The purpose of
Code:
db2 -td@ -vf XMLTEST
is to run DB2 commands and statements in the file XMLTEST, not to export stored procedures.
To extract database objects (including stored procedures) you would use the db2look utility.
Code:
db2look -d yourdb -e -z yourschema -o outputfile
Check the manual for details.