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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need read a rm/cobol-85 indexed file, and convert it to csv or ascii 1

Status
Not open for further replies.

ACME

Programmer
Oct 8, 2000
7
CO
..and i don't have the .cbl or the structure (FD) of the archive...you know some tool can help me ??? ( I don't have any idea about COBOL)
thanks you a lot !!!
 
Put any RM COBOL source which uses the file here in a message and I will help you to make a conversion utility in RM COBOL. [sig][/sig]
 
thanks, but the problem is i don't have any source of a program that use the file, i only have a compiled .cob, don't have any .cbl file.

tnaks a lot to you or anybody who want help me,


ACME [sig][/sig]
 
First you need to determine what type of indexed file you have, since RM COBOL allows you to use a btrieve file as an indexed file. If it is a btrieve file, you can use a BUTIL -SAVE to copy the file from the indexed file to a flat file. Entering this command with no parameters will tell you what the parameters are. (If you're not sure if it is a btrieve file or not, try doing a BUTIL -STAT filename.ext. If you get an error message it's not a btrieve file.) If it is not a btrieve file, RM COBOL comes with two utilities that can be used to convert indexed files, rmifca and rmifcb. Look around on your system and see if you have either of these programs. The straight indexed files may be either one of two types. One of the types could be called anything, but the other type uses two separate files with the same name and different extensions (.dat and .inx). If you are going to use the conversion programs and your file is one of the two name type, it will want the .inx name, not the .dat name. The utility programs will prompt you for the required information. Hope this helps.

Betty Scherber
Brainbench MVP for COBOL II
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top