Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Code to read Cobol data files

Reply
Thread Tools

Code to read Cobol data files

 
 
none
Guest
Posts: n/a
 
      09-22-2005
Hi,
Any one know of some code to read cobol data files....

thanks
timb
 
Reply With Quote
 
 
 
 
Al Christians
Guest
Posts: n/a
 
      09-22-2005
none wrote:
> Hi,
> Any one know of some code to read cobol data files....
>
> thanks
> timb


I posted some here maybe 5+ years ago that would convert COBOL comp-3,
comp-4, and comp-5 fields (as from Realia) to whatever. I suppose you
can still find it in google somewhere.

There was some help for cracking one of the other COBOL file formats at
a site called Wotsit's file formats or something like that. This helped
me access data out of ISAM files from one of the non-Realia desktop
COBOLs. It was one of the more popular COBOL versions way back in the
1980's, but I don't recall anymore which one it was, but I'd guess RM
Cobol if I had to.

COBOL has/had an indexed file type defined in the language, and the
COBOL vendors each implemented it independently, I think. So there are
variations in both the coding of various field/record types and the way
that the files are put together. But Python can handle it if you can
figure out the rules.


Al

 
Reply With Quote
 
 
 
 
Dennis Lee Bieber
Guest
Posts: n/a
 
      09-22-2005
On Thu, 22 Sep 2005 13:01:17 +0930, none <""timb\"@(none)"> declaimed
the following in comp.lang.python:

> Hi,
> Any one know of some code to read cobol data files....
>

That's a rather open-ended question...

What compiler system created them? BCD or binary (I believe there
are two or three common methods of handling decimal and sign markers in
BCD)... EBCDIC or ASCII?

{Unfortunately, I've never successfully finessed the installer from my
Y2K COBOL text -- it had a learning edition of 32-bit Fujitsu COBOL 4
with a GUI capability and IDE; the installer doesn't like anything newer
than W9x}
--
> ================================================== ============ <
> | Wulfraed Dennis Lee Bieber KD6MOG <
> | Bestiaria Support Staff <
> ================================================== ============ <
> Home Page: <http://www.dm.net/~wulfraed/> <
> Overflow Page: <http://wlfraed.home.netcom.com/> <

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
read COBOL index file with perl Gabkin Perl Misc 4 07-05-2004 02:35 PM
How to read files written with COBOL Batista, Facundo Python 7 05-14-2004 03:16 AM
RE: How to read files written with COBOL Batista, Facundo Python 1 05-10-2004 10:02 PM
cobol and binary data written by C hpy_awad@yahoo.com C Programming 5 05-10-2004 12:26 AM
Read COBOL database (DAT, IDX) with JDBC Ferro Java 7 10-29-2003 01:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57