(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-18-24 03:15 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - Is it possible to read Cobol files with c++ ? New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
Fanker
Newcomer


 





Since: 02-27-06
From: Germany, Bremen

Last post: 6654 days
Last view: 6654 days
Posted on 02-27-06 11:41 AM Link | Quote
hello,

how can i read cobol files with c++, and is it possible? We have an old cobol - Programm and i will learn c++ to make own material - reports. So i must read the files (.dat and .idx)

Thanks from Bremen

Fanker
Cellar Dweller +

Red Koopa









Since: 11-18-05
From: Arkansas

Last post: 6307 days
Last view: 6298 days
Posted on 02-27-06 01:18 PM Link | Quote
Yes, but you will need to find out what the format of the files is. If you have documentation on the format, or can read the Cobol source code, then you're set. As a last resort it is possible to reverse engineer the format. Reverse engineering will greatly aided if you can experiment with the program.

The fact that you have asked the question indicates a lack of experience that will make any of the options difficult.
Fanker
Newcomer


 





Since: 02-27-06
From: Germany, Bremen

Last post: 6654 days
Last view: 6654 days
Posted on 02-27-06 04:36 PM Link | Quote
The Data record description for the Material is:

01 ART001-SATZ.
05 ART001-OB.
10 ART001-WG.
15 ART001-WGN PIC Z(4).
10 ART001-ARTNR.
15 ART001-ARTNRN PIC Z(18).
05 ART001-OB1.
10 ART001-MATCHC1 PIC X(25).
10 ART001-WG1.
15 ART001-WGN1 PIC Z(4).
10 ART001-ARTNR1.
15 ART001-ARTNRN1 PIC Z(18).
15 ART001-BEZ.
20 ART001-BEZ1 PIC X(25).
20 ART001-BEZ2 PIC X(25).

can you give me an example due to these data ? Must I create a data type by struct define - but what about the idx_files?
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - Programming - Is it possible to read Cobol files with c++ ? |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.006 seconds; used 356.41 kB (max 421.75 kB)