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!

Win XP and Rebuild.exe in MF Cobol 1

Status
Not open for further replies.

MzKitty

Programmer
Oct 28, 2003
254
US
We are using an older version of MF Cobol (v.3.2.5.0) and have not had any problems running file reorganizations with the rebuild.exe program, but now that we have PC's running with Win XP, the rebuild is not working. Below is a sample of my code. Is the syntax different for the switches in XP? We are using '/'.

ECHO ***********************
ECHO * REORGANIZE AGGRPTFI *
ECHO ***********************
D:
CD\MCC-MF
REBUILD D:\MCC-DATA\MOLINE\AGGRPTFI,D:\MCC-DATA\MOLINE\AGGRPTFX /I /V
ECHO **************************************************
ECHO * REORGANIZE COMPLETE - CHECK FOR ERROR MESSAGES *
ECHO **************************************************
PAUSE
DEL D:\MCC-DATA\MOLINE\AGGRPTFI.*
RENAME D:\MCC-DATA\MOLINE\AGGRPTFX AGGRPTFI
RENAME D:\MCC-DATA\MOLINE\AGGRPTFX.IDX AGGRPTFI.IDX

Thanks Cathy
 
Cathy -

What do you mean by "the rebuild is not working"? Do you receive error messages?

Regards.

Glenn
 
We're not getting any error message. It just bypasses the rebuild line and drops down to the delete on the next line and deletes the file.
 
Sorry about that Glenn. The operator 300 miles away did not tell me that there was an error message. We just recreated it on a new PC. The error was 9/105 - memory allocation problem. It's pointing at a problem with the environment.

Thanks
Cathy
 
Clive,
I did modify the bat file. I added XM in front of the rebuild statement and the file ran perfectly. Thanks for everyone's help.

Cathy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top