For Programmers: Free Programming Magazines  


Home > Archive > Cobol > November 2004 > Error on input file - not MF indexed or variable format









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Error on input file - not MF indexed or variable format
som

2004-11-29, 3:55 pm

Hi,

I wanted to create a rebuild program by the help of rebuild utility .My
environment is MF-COBOL with SCO UNIX.When i am trying to create for a
file named as FDweh with this command "rebuild FDweh > rbweh.cbl" , it is
giving the above error.

Please suggest some solution to this.

Thanks,
Regards
Som

Robert Wagner

2004-11-30, 8:55 pm

On Thu, 25 Nov 2004 03:53:14 -0500, "som"
<soumendra.patnayak@rave-tech.com> wrote:

>Hi,
>
>I wanted to create a rebuild program by the help of rebuild utility .My
>environment is MF-COBOL with SCO UNIX.When i am trying to create for a
>file named as FDweh with this command "rebuild FDweh > rbweh.cbl" , it is
>giving the above error.
>
>Please suggest some solution to this.


Rebuild does not create a program, it reconstructs the file at
execution time.

Is FDweh a MF indexed file?
Did you spell its name right, including extension? Is it FDweh.dat?
Do you have an environment variable named FDweh? You should not.

Is FDweh.idx present in the same directory? If not, you should use -i
You might have to specify the input file's organization with the -s
parameter, the record length with -r and the keys with -k. See
examples in the File Handling manual.

The old default indexed file format on Unix was C-ISAM. If it looks
normal when edited with vi, that's what you have. Try this to 'verify'
the file:
rebuild FDweh -f -i -s:c-isam


Richard

2004-11-30, 8:55 pm

"som" <soumendra.patnayak@rave-tech.com> wrote

> I wanted to create a rebuild program by the help of rebuild utility .


'rebuild' _is_ a file rebuild program. It rebuilds files.

> My
> environment is MF-COBOL with SCO UNIX.When i am trying to create for a
> file named as FDweh with this command "rebuild FDweh > rbweh.cbl" , it is
> giving the above error.


'rebuild' does not generate Cobol programs it rebuilds files. The
parameter should be the name of the indexed data file:

rebuild FDweh.dat

To get all that rebuild can do, type 'rebuild' and it will list the
'help' command line options or read the manual.

It seems to me that 'FDweh' might be a copybook containing the FD of
the file. It certainly is not the actual data file.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com