Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2005

Tip: Looking for answers? Try searching our database.

USS read MVS datasets

Thread view: 
Mark - 28 Jun 2003 09:36 GMT
Hi,

  I am currently trying to write a servlet on websphere running under
USS on ZOS. I want to read some TSO datasets, to compile reports, I
have no problems reading files which reside within the HFS file
structure but would also like to read TSO datasets. What would be the
best way to do this? I do not want to go through other platforms like
CICS or use COBOL programs I want to do it all from the servlet.

 Can anyone help by providing some advice on the best means to
achieve this.

Thanks.
Sudsy - 28 Jun 2003 23:39 GMT
> Hi,
>
[quoted text clipped - 9 lines]
>
> Thanks.

I wouldn't try this with Java! Seriously, I had to play around with
some tape datasets (3380) on AIX which was tricky enough. C is a
much better choice, mapping the record struture directly into a C
struct. You still have to mess about with LRECL and BLKSIZE, and
heaven help you if you're using anything other than DSORG=PS and
RECFM=FB.
Jon A. Cruz - 29 Jun 2003 01:43 GMT
> I wouldn't try this with Java! Seriously, I had to play around with
> some tape datasets (3380) on AIX which was tricky enough. C is a
> much better choice, mapping the record struture directly into a C
> struct.

Eeeeeeeeeeeeeeeek!!!

=-O

That sounds waaaay too scary.

Most places I've worked wouldn't even hire you if you liked casting
bytes directly into C structs! And even on the same OS on the same PC a
change by the vendor can break things on you from one compiler version
to the next.

(Hmmmm..... I know. Let's change this type from 80-bit to 64-bit. And
then only mention it down at the bottom of a huge 'readme' text file...)

What you need to do to read in structures in Java is pretty much exactly
what you need to do to have C code that's not as fragile as an empty
eggshell.
Stephen Cuppett - 13 Apr 2005 00:28 GMT
Found this link and it was helpful:

http://www.jzos.com/
Stephen Cuppett - 13 Apr 2005 00:29 GMT
Got there from a SHARE presentation:

http://www.jsrsys.com/share/104/
http://www.jsrsys.com/share/104/S8368jza.pdf
Stephen Cuppett - 13 Apr 2005 14:59 GMT
Another useful IBM link is:

IBM: Java Record I/O (JRIO) overview
http://www-
1.ibm.com/servers/eserver/zseries/software/java/jrio/overview.html


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.