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
In my incomplete course, "Introduction to Java for z/OS
Applications Programmers", available for free from our
website, we give examples of extracting fields from
records by reading chunks of bytes and using various
methods to convert to different formats. Look at p. 387
for an example of extracting four fields (two string
fields, an integer field, and a float field) into
object variables.
I think it would actually provide some insight to study
the earlier section on writing files, also. (Start with
page 275, for example, especially pp. 290-313.)
Hope this helps.
--
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