Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can Java read mainframe datasets?

1,351 views
Skip to first unread message

Raj

unread,
Oct 2, 2002, 3:09:30 PM10/2/02
to
Hi,
Can I use Java to read mainframe datasets directly off a
mainframe? If so, how would you do it? Are there any APIs? If that is
not posible, is there some way to ftp the dataset from the mainframe
onto a UNIX or Windows 2000 server and then read it from there? Any
help will be greatly appreciated.

Thanks,
Raj

john smith

unread,
Oct 2, 2002, 4:59:59 PM10/2/02
to
Hi Raj,

I am not an expert, but have been involved in a project recently which
does what you're asking.

The way we exchange information with an OS/390 mainframe is through a
CICS gateway. Basically, we used IBMs Webshere Studio Integration
Edition, which comes with enterprise adapters to interact with CICS
using either ECI or EPI. We wrapped the copybook with a web-service,
and exposed the service via. a standard javabean.

Good Luck!

bc

unread,
Oct 3, 2002, 8:40:26 AM10/3/02
to

If you are running Java on the mainframe, you can use it to
read files there, but I think you need USS to do that. There
are some java FTP api's around, too, that might be better depending
on what you need to do.

Raj

unread,
Oct 3, 2002, 10:37:34 AM10/3/02
to
Hi John,
Thanks for the reply. We are currently using Websphere Studio
Application Developer v4.03. Is th eintegration edition part of WSAD
or is that a separate tool that we need to buy? We have not started
the project yet but I am expecting my clients to ask me to do a
feasibility study on this subject. I am a newbie on most of the stuff
you mentioned in your e-mail (CICS, ECI, EPI and web-service). I know
that CICS is like a front end (a Character User Interface for
mainframe applications) and I know we can do web-services in WSAD.
What are ECI and EPI? Is there some reference material on the web that
I can read to get a better idea of what we will be doing? Appreciate
the help you've already provided. Now I atleast know that something
like this is possible. To me, you are an expert.

Thanks,
Raj


john smith <jsm...@aol.net> wrote in message news:<3D9B5F54...@aol.net>...

Raj

unread,
Oct 3, 2002, 4:08:46 PM10/3/02
to
Hi,
Thanks for the reply. We would actually be running Java on a
Websphere Application Server on a UNIX machine. What is USS and can
you point me to those FTP APIs that let me ftp a mainframe dataset?

Thanks,
Raj

bc <b...@example.net> wrote in message news:<3D9C3ABA...@example.net>...

bc

unread,
Oct 3, 2002, 4:37:36 PM10/3/02
to

Raj wrote:
>
> Hi,
> Thanks for the reply. We would actually be running Java on a
> Websphere Application Server on a UNIX machine. What is USS and can
> you point me to those FTP APIs that let me ftp a mainframe dataset?
>
> Thanks,
> Raj
>

USS = Unix System Services, gives you unix api's on the
mainframe. Since you are running on Unix, I'd expect you
will be needing to ftp the file and then read it, unless the
mainframe can share files over the network ala NFS mounting
(not sure on this one). There is an ftp api's in sun.net.ftp.*,
also there are various open source java ftp implementations.

Ian Pilcher

unread,
Oct 4, 2002, 12:13:12 PM10/4/02
to

You need to be more specific about what you're trying to do. From
"mainframe", I'm guessing that you mean OS/390 or zOS, but what type of
data are you trying to access -- DB2, IMS, VSAM?

What's the current interface to the data -- IMS/TM, CICS (ECI or EPI), 3270?
--
========================================================================
Ian Pilcher pilc...@attbi.com
========================================================================

Raj

unread,
Oct 7, 2002, 4:18:53 PM10/7/02
to
Hi,
The system will be reading datasets (just flat sequential files)
off a mainframe (OS/390) and using the information there to create
reports and such. DB2 table data will also be accessed but I do not
foresee any problems with that since we can create a connection to a
DB2 database from Websphere.
I dont understand what you mean by current interface. The current
system uses CICS screens and they also use ON NET 3270 to do work on
the mainframe (if this is the information you are looking for). They
also have some JCLs set up to ftp mainframe datasets.

Thanks,
Raj

Ian Pilcher <pilc...@attbi.com> wrote in message news:<s6jn9.35447$FO4.8659@sccrnsc03>...

Ian Pilcher

unread,
Oct 8, 2002, 2:13:00 AM10/8/02
to
Raj wrote:
> Hi,
> The system will be reading datasets (just flat sequential files)
> off a mainframe (OS/390) and using the information there to create
> reports and such. DB2 table data will also be accessed but I do not
> foresee any problems with that since we can create a connection to a
> DB2 database from Websphere.
> I dont understand what you mean by current interface. The current
> system uses CICS screens and they also use ON NET 3270 to do work on
> the mainframe (if this is the information you are looking for). They
> also have some JCLs set up to ftp mainframe datasets.
>

If you want to get at the data directly, check out IBM's DataJoiner. It
may enable you to access it (read-only) with SQL. If you want to go
through the existing application, look at the CICS Transaction Gateway.

anirban...@gmail.com

unread,
Mar 18, 2015, 1:02:44 PM3/18/15
to
Use Apache Commons Net. It has got FTP API to achieve FTP in Java. Just provide the Mainframe IP, ID, password to the FTP API to connect to Mainframe in Java through FTP in Java

Arne Vajhøj

unread,
Mar 18, 2015, 9:54:00 PM3/18/15
to
On 3/18/2015 1:02 PM, anirban...@gmail.com wrote:
> Use Apache Commons Net. It has got FTP API to achieve FTP in Java. Just provide the Mainframe IP, ID, password to the FTP API to connect to Mainframe in Java through FTP in Java

So you assumed that:
* after 12.5 years they were still looking for an answer
* the problem is simply a problem of moving bytes from the mainframe to
another system
?

I think that is two very questionable assumptions!

Arne


0 new messages