Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

passing an input parameter through JCL using BPXBATCH utilit

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: passing an input parameter through JCL using BPXBATCH utilit
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

Site Director


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

PostPosted: Sun Jun 01, 2008 10:07 pm    Post subject:
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    Post subject: Reply to: passing an input parameter through JCL using BPXBA
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10276
Location: italy

PostPosted: Mon Jun 02, 2008 12:17 pm    Post subject: Reply to: passing an input parameter through JCL using BPXBA
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    Post subject: Reply to: passing an input parameter through JCL using BPXBA
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Paasing symbolic parameter to instrea... Anirudh Anand JCL & VSAM 0 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us