Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageOn 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
Post Follow-up to this message"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.
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.