Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Comp-3 value in Java

Status
Not open for further replies.

ramki431

IS-IT--Management
Aug 8, 2001
6
US
We have a requirement as below in our project.
We will be downloading a Flat file from Host mainframe which has some COMP-3 (packed decimal) field.

Could anyone please explain me how to handle with this COMP-3 field. We need to uncompress this field do some check against each byte and depending on that different actions to be taken.

Pls let me know how to uncompress, compress and read COMP-3
values.
 
how are you downloading this file? is there any translation going on to take it from ebcdic to ascii ?? if so can't you just get the translation to transform the field into a usable format?

I must admit my experience with creating flat files from mainframes is that usually there is a program which does the writing to file - just make it write the value in a usable form and avoid the extra hassle. Then when loading it back up again (using another program?) just convert it back.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top