View previous topic :: View next topic |
Author |
Message |
spalanis Beginner
Joined: 19 Jul 2006 Posts: 32 Topics: 15
|
Posted: Wed Jun 25, 2008 12:06 pm Post subject: Accessing "BATCH load module" realtime |
|
|
Hi Guys,
1. Searched through the forum and did not found any satisfactoy explanations.
2. Assuming "no question is stupis", posting this question.
So here we go....
I have a batch load module which takes 150 bytes file as input and gives 250 bytes file as output. My current requirement is to call this batch load module REALTIME and get the output file. How should I do this?.
Please advise.
Thanks,
Srini |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed Jun 25, 2008 12:10 pm Post subject: |
|
|
I'm not sure I entirely understand the question but - BMP? _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
spalanis Beginner
Joined: 19 Jul 2006 Posts: 32 Topics: 15
|
Posted: Wed Jun 25, 2008 12:15 pm Post subject: |
|
|
Hi,
To explain further, I need to call this COBOL load module from Java or any front end tool realtime. I need to pass the 150 length data as input to this batch module which currently is accepting the input from a Flat file in DD parameter and I need to capture the output which is currently in output DD file and trasfer to front end.
I hope I explained better now.
Please advise.
Srini |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed Jun 25, 2008 12:26 pm Post subject: |
|
|
Right, that is clear now. I have no clue about Java on the mainframe but I would assume it has a programmer's guide which should mention how to call external modules written in various different languages. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Wed Jun 25, 2008 1:39 pm Post subject: |
|
|
Seems to me that you will need to change from file input/output to linkage section. |
|
Back to top |
|
 |
hari_uss Beginner
Joined: 19 Dec 2002 Posts: 78 Topics: 6 Location: Trivandrum, India
|
Posted: Wed Jun 25, 2008 7:06 pm Post subject: |
|
|
Is MQ an option at all? |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Jun 26, 2008 10:42 am Post subject: |
|
|
You should be able to do dynamic allocation to the input and output data sets by calling BPXWDYN from Java. You can probably use JZOS to do this or you may be able to use some built in function System.exec or something (I don't know Java well enough) to call BPXWDYN and your module and to call your module. But you need to read the MVS data set to get the output so you can either use JZOS or run a cp command to copy the output to the USS file system and read it from there using normal Java I/O. If you are really lucky, maybe your program can write directly to a ddname allocated to a path (see the JCL or Unix manuals about allocating a path to a dd) _________________ New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html. |
|
Back to top |
|
 |
|
|