Operating System - HP-UX
1753485 Members
4483 Online
108794 Solutions
New Discussion юеВ

Re: Cobol index file corrupt

 
SOLVED
Go to solution
Robert-Jan Goossens
Honored Contributor

Cobol index file corrupt

Guys and girls,

I've got a corrupt index file on Unix not HPUX, but I believe this should make no difference.

MicroFocus Cobol 4.0
OS Solaris 6

Has someone got a Cobol program which can recreate this index file from the data file.

I've seen some docs on ITRC saying that this should be possible, but there are no commands given.

Regards,

Robert-Jan.
6 REPLIES 6
Alexander M. Ermes
Honored Contributor
Solution

Re: Cobol index file corrupt

Hi there.
You should be able to do this with some sort tool.
I have done this on mainframes, where you take the sequential file as input and an ISAM file as output with the appropiate parameters set for the sort run.
I do not know, whether this is possible on Unix, but basically it should be. If yes i also would be interested, which tool it is.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Julio Yamawaki
Esteemed Contributor

Re: Cobol index file corrupt

Hi,

try using fhrebuild
Julio Yamawaki
Esteemed Contributor

Re: Cobol index file corrupt

Robert-Jan Goossens
Honored Contributor

Re: Cobol index file corrupt

Alexander and Julio,

Thanks for your support, I will look into these suggestions.

Alexander did you preform this rebuild on an IBM mainframe ?

I will keep this question open for a while. It is a productional problem.

Please all of you feel free to add suggestions.

Kind regards.

Robert-Jan.
Scott Williams_5
Frequent Advisor

Re: Cobol index file corrupt

Hi,

You Should be able to use micro focus's fhrebuild utility: >whence fhrebuild
/opt/cobol/bin/fhrebuild

I've attached a short description of how I've rebuilt isam files on our HPUX system. Hope this helps!

Robert-Jan Goossens
Honored Contributor

Re: Cobol index file corrupt

Here are the steps I used,

Thanks for your support Alexander, Julio and Scott.

Kind regards,

Robert-Jan.