Hi...
Could anyone please tell me how to pass an input through JCL (BPXBATCH utility) for the execution of Java-Db2 Batch program and how the input parameters will be linked in the Java program????
lemme explain my requirements a little more in detail...
i need to pass two dates(from-date, to-date) thru a jcl which uses BPXBATCH utility...
and these dates have to be accessed by my java-db2 program to generate a report using the dates in the sql query...
Kindly help me in this regard...
I would say that the question is not really jcl or BPXBATCH related
BPXBATCH is just a wrapper to acticate a USS shell that in turn invokes something else...
a shell command or a USS program
so at the end the issue comes back on how to pass to a java program some parameters
so after all, not really a jcl issue, but simply a java issue
I would suggest that the best source of knowledge is the java doc
there is something called STDPARM which is used as
//STDPARM DD PATH='/u/turbo/abc.parms',PATHOPTS=ORDONLY
it says tat the parameter data resides in the z/OS UNIX file /u/turbo/abc.parms.
So in my case i have to pass the dates to this unix file and then access those dates in my java-db2 program by reading this file.
Is there any other way to access the dates thru a variable in the java -db2 program rather than opening the file and reading from it(similar to the linkage section available in cobol)
Kindly help me in this regard...