IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

passing an input parameter through JCL using BPXBATCH utilit


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sujatha Gowda

New User


Joined: 30 May 2008
Posts: 6
Location: Bangalore

PostPosted: Fri May 30, 2008 3:43 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Jun 01, 2008 10:07 pm
Reply with quote

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
View user's profile Send private message
Sujatha Gowda

New User


Joined: 30 May 2008
Posts: 6
Location: Bangalore

PostPosted: Mon Jun 02, 2008 11:25 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jun 02, 2008 12:17 pm
Reply with quote

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
View user's profile Send private message
Sujatha Gowda

New User


Joined: 30 May 2008
Posts: 6
Location: Bangalore

PostPosted: Mon Jun 02, 2008 5:22 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts force tablespace using LISTDEF input DB2 1
No new posts Two input files & writing counter... DFSORT/ICETOOL 12
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
Search our Forums:

Back to Top