Clipper and DOS error 4 DBFNTX/1001

Closed
benguigui1 Posted messages 27 Status Membre -  
 NAS -
Hello,
here is my problem: I am working with Win XP, Clipper 5, and Blinker 3.
Although I have modified the config.nt to increase the "FILE" parameter, I am still having issues opening my table (or sometimes the corresponding indexes).

What should I do?!

Thank you for your responses...

11 réponses

JM DEWALQUE Posted messages 8 Status Membre
 
Changing the FILES=xxx parameter in the CONFIG.NT file under XP/2000/NT (or CONFIG.SYS under WIN98) is not enough.

Additionally, in the .BAT file that starts your application, you need to declare the following environment variable:

rem To disable EMS memory and declare 99 possible files (max=254)
SET CLIPPER = E000;F099
rem Launches my application called MONPROG.EXE
MONPROG
rem Destroys the environment variable when quitting the program
SET CLIPPER =

Good luck.
1
benguigui1 Posted messages 27 Status Membre 6
 
Thank you very much,

the problem has been resolved.
0
Anonymous user
 
Hello DEWALQUE,
according to your answers, you master the Clipper language,
please if you could clarify for me because I really need it, I am a Clipper programmer, I have a program that contains the (sort) command to sort the database, when launching the corresponding exe, it works on some PCs and not others, I don't understand anything; also how to print via USB (Clipper program), and how to write in Arabic in Clipper ----thank you very much.
0
sabri01 Posted messages 9 Status Membre 20 > Anonymous user
 
You need to capture the LPT1 port with USB; to write in Arabic, you need DOS in Arabic.
0
younes
 
Hello,
My problem is DBFNTX/1001 Open error: xclomos.DBF
(Dos Error 4)
Knowing that I upgraded from Win98 to Win2000
changed the value File=xxx in config.nt
and then? I am lost?
Thank you for replying quickly, I am stuck

Thank you
2
JMD
 
Hello,

The instruction to add in C:\windows\system32\config.nt is:
files=254
and not
file=254

(254 is the maximum, you might as well put this number, but you can put less)

Best regards,

JMD
0
younessbh Posted messages 50 Registration date   Status Membre 4
 
Hello JMD

Thank you for the advice
I just set files=60 and I no longer have the error message
But now, when I press Esc to exit Ciel version 7.01, it asks me to make a backup, OK, insert a floppy disk, OK, click on OK (Incorrect file name) then Esc does not close the program, but a DOS message appears (Make sure you have the patch and the BACKUP and RESTORE files are in the Compt5 folder.
Knowing that I did a re-indexing of the files OK
Just this DOS message for the patch still exists

Thank you again JMD
0
JMD > younessbh Posted messages 50 Registration date   Status Membre
 
Hello,

Regarding the message asking to install a "Patch," I don't know Ciel, but a Patch is a corrective program file. It needs to be downloaded (from Sage or Ciel's website) and executed in the Ciel directory. It is designed to perform small bug fixes.

As for the BACKUP.EXE and RESTORE.EXE programs, these are old DOS backup copy programs. They need to be copied into the Ciel directory to be able to make backup copies onto floppy disks. These are small EXEs (36K and 38K) that can be downloaded from the Internet, in my opinion.

Best regards,

JMD
0
younessbh Posted messages 50 Registration date   Status Membre 4 > JMD
 
Hello, JMD
Thank you very much
My problem is: RESOLVED: Thanks to your help


Thanks again
0
JMD
 
Bonjour,

Pour exécuter un programme Clipper, vous avez deux façons :
- avec un fichier batch qui ressemblera à ceci
ECHO OFF
SET CLIPPER = F115;E000 pour préparer de l'espace pour 115 fichiers et éviter d'utiliser de la mémoire "Extended" (c'est une variable d'environnement)
MYPROG cela exécutera votre programme
SET CLIPPER = pour libérer la variable d'environnement
- ou pour appeler le programme par son nom suivi du paramètre //F:xxx //E:000 (ou peut-être //Fxxx //E000 ???) (une seule ligne d'instruction)
Exemple : MYPROG //F:115 //E:000

Au revoir
1
JM DEWALQUE
 
Hello,

In the CONFIG.NT, it is not the parameter "FILE" but "FILES":

FILES=254

(254 is the maximum).

Best regards,

JMD
0
joev Posted messages 6 Registration date   Status Membre
 
Hello Dewalque, I arrived on this forum following my searches on Google. In my new job, I was forced to replace our old server with a new generation server (Zeon Quad..) and install Windows 2003 Enterprise Server. However, my predecessor developed some applications in DbaseII with Clipper 5. When launching these applications, I get execution errors... DOS Error 4, 3... Most discussions on these errors suggest solutions like inserting in config.nt files=250, in autoexec, path=..., but they don't resolve my issue. My question is, do I also need to install the Clipper program on my server? Thank you.
0
JMD
 
Hello,

To solve the problem related to the number of files, on Windows 2000, NT, or XP, you need to open the CONFIG.NT file located in C:\WINDOWS\SYSTEM32 and, on the last line, replace "Files=40" with "Files=254" (maximum), for example.

Clipper programs are DOS programs and, therefore, contain everything needed for their execution. Nothing needs to be installed. The .EXE program just needs to find the .DBF files it requires, and it will run without needing to install anything (in the registry, for example). This is what's great about DOS. An .EXE file that runs on ONE machine will run on ALL machines in the world because it contains everything it needs. It's enough to set the "Files=254" parameter in the Windows configuration file. I don't understand why Microsoft doesn't set this parameter directly to "254" (instead of 40), as "1 file" takes up 12 bytes in memory (which is virtually nothing).

I hope this will help you. If not, please get back to me.

Best regards,

MCDLM
0
joev Posted messages 6 Registration date   Status Membre
 
Hello Jmd, could you maybe respond to my request? It seems that no one else is available. Thanks, Joev.
0
JMD
 
Hello,

In addition to my response on Sunday, it is not necessary to install Clipper on the server.

The DOS ERROR messages are as follows:
DOS ERROR 0 = index file out of bounds: the index file needs to be regenerated
DOS ERROR 1 = ???
DOS ERROR 2 = non-existent file (the .DBF file was not found, wrong path or spelling mistake in the name for example)
DOS ERROR 3 = incorrect path (in DOS, only names of 8 characters MAXIMUM are allowed; otherwise, you need to use the "tildes" followed by a number (~1, ~2,...). For example, the directory "Program Files" becomes, in DOS, "Progra~1".
DOS ERROR 4 = not enough files in CONFIG.SYS (WIN 95, 98, and Me) or CONFIG.NT (WIN 2000, NT, XP,...) (see my response from Sunday).
DOS ERROR 5 = flag problem: no permission to open this file. You need to ensure you have sufficient rights at the Windows level.

Best regards,

MCDLM
0
joev Posted messages 6 Registration date   Status Membre
 
Thank you for replying, JMD. The applications were running on Windows 2000 Server, we installed Windows 2003 Enterprise Server, we copied the same directories and hierarchy, the files are at 200. We noticed (since the previous installation dates back several years and was done by someone else) that in the Win2K Server environment, "Clipper F74 or F90" is included (I will be at the office in about 2 hours, and I can confirm it). By the way, I am a programmer analyst, but I have never worked with Clipper. Another question we are asking is about execution compatibility with Windows 2003 Server. I will also recheck the permissions because I have granted read and write permissions to all users who need to execute these programs. Thank you once again for replying.
0
joev Posted messages 6 Registration date   Status Membre
 
Hello JMD, indeed in the Windows environment the variable clipper is set with a value of F75(??), and also another variable does not appear under the new OS (Win 2003), which is a variable named Os2LibPath whose value points to the directory system32\os2
dll, related to the DOS application?? Thank you.
0
joev Posted messages 6 Registration date   Status Membre
 
more info for jmd... initially, the DOS applications are run while we are on the subject of DOS, what surprises me the most is when we run a program in DOS, as long as the application is open, the processor on the local PC is almost always running at 100%
0
geph
 
My error message is as follows: Error DBFNTX/1003 Error opening ther_pro.NTX (Error Dos 2)
0
JMD
 
Hello,

The DOS error 2 = file not found
The DOS error 3 = incorrect path
The DOS error 4 = not enough files in CONFIG.SYS (or CONFIG.NT in 2000, NT, XP, Vista)
The DOS error 5 = flag problem, no permission to open this file (rights issue)

Best regards,

JMD
0
help
 

turn off echo
gmh.exe //f:150 //e:0
clipper program
0
NAS
 
Hello everyone.
My message is particularly addressed to JM DEWALQUE because I've noted that he has a good grasp of CLIPPER5 and his recommendations have made a difference:

My problem is as follows:
I have programmed an application in Clipper 5 for about fifteen years that has been functioning normally on Win 95, but when we tried to migrate to another PC with WIN XP SP2 as the operating system, the troubles began. I searched online to resolve the DOS ERROR 4 issue, and I made adjustments to the config.nt and .bat as indicated by JMD. It works after compilation, but as soon as I close the DOS window and come back, it no longer works. This problem is really troubling me.
Please help me.
0
NAS
 
Hello everyone.
My message is particularly directed at JM DEWALQUE because I noticed that he has a good grasp of CLIPPER5 and his recommendations have made a difference:

My problem is as follows:
I programmed an application in Clipper 5 about 15 years ago that was functioning normally on Windows 95, but when we tried to migrate to another PC with Windows XP SP2 as the operating system, the trouble began. I searched online to resolve the DOS ERROR 4 issue, I made the modifications to config.nt and the .bat as indicated by JMD, it works after compilation, but as soon as I close the DOS window and re-run it, it doesn't work anymore. This problem is really bothering me.
Please help me.
0