MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Accessing "BATCH load module" realtime

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
spalanis
Beginner


Joined: 19 Jul 2006
Posts: 32
Topics: 15

PostPosted: Wed Jun 25, 2008 12:06 pm    Post subject: Accessing "BATCH load module" realtime Reply with quote

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
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Jun 25, 2008 12:10 pm    Post subject: Reply with quote

I'm not sure I entirely understand the question but - BMP?
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
spalanis
Beginner


Joined: 19 Jul 2006
Posts: 32
Topics: 15

PostPosted: Wed Jun 25, 2008 12:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Jun 25, 2008 12:26 pm    Post subject: Reply with quote

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


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Wed Jun 25, 2008 1:39 pm    Post subject: Reply with quote

Seems to me that you will need to change from file input/output to linkage section.
Back to top
View user's profile Send private message
hari_uss
Beginner


Joined: 19 Dec 2002
Posts: 78
Topics: 6
Location: Trivandrum, India

PostPosted: Wed Jun 25, 2008 7:06 pm    Post subject: Reply with quote

Is MQ an option at all?
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Jun 26, 2008 10:42 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group