The manual I am referring to is called "Callable Services." Chapter 4 is titled "Invoking DCMT and DCUF Commands from Programs." Your code looks correct. I will attempt to attach the manual to this post.
Attachment Removed. The distriution of copyrighted material is both against the policy of this forum and is illegal.