Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Error on input file - not MF indexed or variable format
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


Report this thread to moderator Post Follow-up to this message
Old Post
som
11-25-04 01:55 PM


Re: Error on input file - not MF indexed or variable format
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



Report this thread to moderator Post Follow-up to this message
Old Post
Robert Wagner
11-26-04 01:55 AM


Re: Error on input file - not MF indexed or variable format
"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.

Report this thread to moderator Post Follow-up to this message
Old Post
Richard
11-26-04 01:55 AM


Re: Error on input file - not MF indexed or variable format
If you check out chapter 7 of the OCDS Programmer's Guide to File
Handling -- you can access the docs from http://supportline.microfocus.com ,
if you have a valid maintenance contract -- it fully documents what rebuild
does, inc. the various command-line options.

SimonT.



Report this thread to moderator Post Follow-up to this message
Old Post
Simon Tobias
11-26-04 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:52 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.