> 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