View previous topic :: View next topic
|
Author |
Message |
Sujatha Gowda
New User
Joined: 30 May 2008 Posts: 6 Location: Bangalore
|
|
|
|
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???? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello Suja Gowda and welcome to the forums,
Quote: |
please tell me how to pass an input through JCL (BPXBATCH utility) |
The following will pass a parm (that controls an sftp execution) to the BXPBATCH module:
Code: |
//STEPNAME EXEC PGM=BPXBATCH,
// PARM='sh sftp -b sftp-batch userid@some~place.com ' |
You would also need to include any other BXPBATCH jcl needed for your process.
Quote: |
how the input parameters will be linked in the Java program |
If the java is like a UNIX sftp execution, there is no "linking". . . The "parm(s)" to sftp simply follow on the embedded execute.
If the first part of your request is not about passing a parm to BXPBATCH, please clarify. |
|
Back to top |
|
|
Sujatha Gowda
New User
Joined: 30 May 2008 Posts: 6 Location: Bangalore
|
|
|
|
hi dick..
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... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
Back to top |
|
|
Sujatha Gowda
New User
Joined: 30 May 2008 Posts: 6 Location: Bangalore
|
|
|
|
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... |
|
Back to top |
|
|
|