McKown, John wrote:
From what I can see (and I'm a novice), the JAVA language does not have anything like a C/C++ struct or COBOL 
data defination which can be used to read "records" kept in a "dataset" (such as VSAM or 
PS). I know of the Alphaworks program which can take ADATA from HLASM and generate Java code which can be 
used to separate a record into fields. It does work. But the generated code is not what I'd call "easy 
to understand". Using JAVA with an RDMS, or XML input, is much easier. So I'm wondering if anybody 
actually uses Java with, say, VSAM files and, if so, how you process a record? Has somebody, perhaps, written 
a JDBC driver to read their VSAM files? That might be interesting to look into. If I knew Java and JDBC well 
enough.

Just curious. Things around here truly are dying a slow, lingering, painful death. 
Management has decreed that we __WILL__ download our z9BC from a T02 to a Q02 very soon. 
Curiously, they think it will be better to do this before year end processing. This may 
be fun! Sometimes it is nice to be a "grunt" who cannot really be blamed for 
this type of problem.

John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-961-6183 cell
[email protected] * www.HealthMarkets.com

John,

I've been working on a Java for z/OS course for a while. While
doing the research for I/O I found there were tons of classes
and methods, although the don't generally use the typical IBM
mainframe record model.

I've gotten bored with Java, so I've stopped developing the
course. But, let nothing go to waste, so I've put the course
on our website for access for free, as is, no guarantee,
no warranty, incomplete, yada yada yada.

Go to
  http://www.trainersfriend.com/General_content/Book_site.htm
and follow the link for the second entry in the table


Anyway, around about p. 239 you'll find the exploration of
I/O methods available. Took me quite a while to research,
test, and write. Then I recalled what Timothy Sipples
pointed you to: the JRIO package. Actually, I found that
discouraging. Research all the Java classes and methods
documented on the Sun site then find JRIO comes with the
z/OS JDK and is not documented there. So, I got to wondering:
what happens if you use such a class in Java code? Is it
no longer portable? No longer "write once run anywhere"?
Then the promise, which has always had to be taken with a
grain of salt, clearly is broken.





--

Kind regards,

-Steve Comstock
The Trainer's Friend, Inc.

303-393-8716
http://www.trainersfriend.com

  z/OS Application development made easier
    * Our classes include
       + How things work
       + Programming examples with realistic applications
       + Starter / skeleton code
       + Complete working programs
       + Useful utilities and subroutines
       + Tips and techniques

==> Ask about being added to our opt-in list:              <==
==>   * Early announcement of new courses                  <==
==>   * Early announcement of new techincal papers         <==
==>   * Early announcement of new promotions               <==

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to