> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[email protected]] On Behalf Of Shmuel Metz (Seymour J.)
> Sent: Thursday, November 19, 2009 8:08 AM
> To: [email protected]
> Subject: Re: How do __you__ read non-DB non-XML files in Java?
<snip>
> 
> I believe that the OP gave a misleading subject; what he 
> needs to know is
> not how to read the file but rather how to access the data once he has
> read them. That is, he wants to access individual fields in a record
> defined by, e.g., an HLA mapping macro, a PL/I structure.
>  
> -- 
>      Shmuel (Seymour J.) Metz, SysProg and JOAT

I'm the OP. And you are absolutely correct. So the question really is: "Once 
I've read a record in Java, how do I access individual fields?" So far, the 
best that I've seen is the Alphaworks code which can read COBOL ADATA and 
create Java code to access the fields. I was hoping for something "simpler", 
more akin to how C (struct) or COBOL (data description entries) or HLASM 
(DSECT) would do it. Java just doesn't seem to have anything like this. Another 
person mentioned "marshalling" or "serialization" which might be another 
approach. I need to read up on them.

--
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

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

 

----------------------------------------------------------------------
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