Hi!
On this site,
http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/inet2stp.html
it says:
"The stored process server cannot directly execute SOURCE, MACRO, or SCL catalog entries. You must write a wrapper .sas source code file that executes the catalog entry." Writing wrapper code is easy -- your .sas program just has the %include or other statements to call your code into the .sas program. If your stored process is going to return a Word document to the client application, you may also need to change the content-type (or HTTP header) using the STPSRV_HEADER function, (inside your code).
Since you are using Java, it sounds to me like you are building a custom web application and will probably be using the Stored Process Web Application, the Stored Process Service API or a combination of both. This web site
http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/webapp.html
says that....
"The Stored Process Service API enables the Java developer to embed stored processes within a Java Web application." ...this site further describes how you would write a custom application and I believe they have an example of wrapper code within that section of the doc. For more specific Java information, consult the developer's guide information which can be found at the links below. (I've included the links for both Java and Windows development.)
cynthia
*** the links ***
http://support.sas.com/rnd/itech/doc9/dev_guide/dist-obj/javaclnt/javaprog/index.html
http://support.sas.com/rnd/itech/doc9/dev_guide/dist-obj/winclnt/index.html