I have tried the /routine parameter but this didn't work. Also tried the routine name with the /job parameter but this also failed too.
I came across this post
Any suggestions.I've found that dsexport also supports:
/XML
/EXT
and
/EXEC
/APPEND
I think /EXEC exports the executable part - the dsx produced only has a DSEXECJOB section.
/APPEND can only be used with /EXEC and appends onto an existing dsx file.
I found this by opening the file dsexport.exe in a hex editor and looking at the clear text in the file. The complete list of apparent switches is:
/JOB=
/XML
/EXT
/EXEC
/APPEND
/ASK
/ALL
/NUA
TIA