Does not create the index file

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Does not create the index file

#1 Post by Eugene Lutsenko »

When attempting to create an index file error occurs, the file can not be created:

SELECT (M_KlastCls)
INDEX ON STR(Num_Klast,15)+STR(999999.9999999-Sxodstvo,19,7) TO KlastCls

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Does not create the index file

#2 Post by rdonnay »

Do you have any more information about the error that occurred?
The eXpress train is coming - and it has more cars.

User avatar
Tom
Posts: 1234
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Does not create the index file

#3 Post by Tom »

What is "Sxodstvo"? Is that a memvar or a database field?
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Does not create the index file

#4 Post by Eugene Lutsenko »

This database field



--------------------------------------------------
Date : 10.07.2014
Time : 12:57:01
Procedure : F4_2_2_2
Line Number : 50536
Information : Error BASE/8999
Description : File can not be created
Operation : DbCreateIndex
Thread ID : 1
Source :
Called from : (B)INIT: _DCINIT(28)
Called from : F4_2_2_2(50536)
Called from : (B)MAIN(681)
Called from : DC_GETLIST:EVENTLOOP(4596)
Called from : DC_GETLIST:READGUI(3800)
Called from : DC_READGUI(111)
Called from : MAIN(779)

Status:


Work Area 1 :
Alias: CLASSES ** EOF **/10
File Name: D:\ALASKA\AIDOS-X\AID_DATA\A0000001\SYSTEM\CLASSES.DBF
Dos Handle: ***
Data Driver: DBFNTX
Index Hndl Tag Name File Name Key
----- ---- ---------- ------------- -------------------------------

Work Area 2 :
Alias: SXODCLS_ ** EOF **/10
File Name: D:\ALASKA\AIDOS-X\AID_DATA\A0000001\SYSTEM\SxodCls_Abs.DBF
Dos Handle: ***
Data Driver: DBFNTX
Index Hndl Tag Name File Name Key
----- ---- ---------- ------------- -------------------------------

Work Area 3 :
Alias: KLASTCLS Record 1/100
File Name: D:\ALASKA\AIDOS-X\AID_DATA\A0000001\SYSTEM\KlastClsAbs.DBF
Dos Handle: ***
Data Driver: DBFNTX
Index Hndl Tag Name File Name Key
----- ---- ---------- ------------- -------------------------------
1** 0 KLASTCLS KlastCls.NTX STR(Num_Klast,15)+STR(999999.99

Work Area 4 :
Alias: SXODCLS_ ** EOF **/10
File Name: D:\ALASKA\AIDOS-X\AID_DATA\A0000001\SYSTEM\SxodCls_Prc1.DBF
Dos Handle: ***
Data Driver: DBFNTX
Index Hndl Tag Name File Name Key
----- ---- ---------- ------------- -------------------------------

Work Area 5 :
Alias: KLASTCLS Record 100/100 ** Database Selected **
File Name: D:\ALASKA\AIDOS-X\AID_DATA\A0000001\SYSTEM\KlastClsPrc1.DBF
Dos Handle: ***
Data Driver: DBFNTX
Index Hndl Tag Name File Name Key
----- ---- ---------- ------------- -------------------------------

File(s) Open:
Handle File Name

Command Sets Loaded:

ALTERNATE OFF
ALTFILE
AUTOINDEX OFF
AUTOLOCK ON
BELL OFF
CANCEL ON
CENTURY ON
CHARSET 1
CHRKEY 290
COLLATION {...}
CONFIRM OFF
CONSOLE ON
CURSOR
DATEFORMAT dd.mm.yyyy
DCLIP D:\ALASKA\AIDOS-X\
DEBUG OFF
DEBUGFILE
DECIMALS 15
DEFAULT
DELETED OFF
DELIMCHARS ::
DELIMITERS OFF
DEVICE SCREEN
DOSKEY OFF
DOTSTACK 100
EDITOR
EPOCH 1900
ESCAPE ON
EXACT OFF
EXCLUSIVE OFF
EXIT OFF
EXTRA OFF
EXTRAFILE
FIXED OFF
FLDKEY 289
HISTORY
INCLUDE
INDEXKEY 279
INSERT OFF
INTENSITY ON
KEYSTAT ON
LEXICAL OFF
LIBS
LINKER
LINKOPT
MAKE
MARGIN 0
MAXROWS
MCENTER OFF
MCONFIRM ON
MESSAGE 0
ODIR
ODOMETER 5,00
PATH
PDIR
PEXT .PRG
PRINTER OFF
PRINTFILE
PROMPT DOS
PUBLIC OFF
QUERYKEY 272
RDD DBFNTX
RDDDICT DBFNTX
REEDIT ON
RESET OFF
SCOREBOARD ON
SCROLLBREAK OFF
SETCOLOR
SOFTSEEK OFF
SOUNDS OFF
STATUS ON
TALK OFF
TIME HH:MM:SS
TYPEAHEAD 60
UNIQUE OFF
USEDBFPROTECT OFF
USEEXCLDATA OFF
USEEXCLDICT OFF
WRAP ON
XPPOPT
XPPPATH

Memory(0) - Conventional Memory : 817152
Memory(2) - Program Run Memory : 4173824
Memory(4) - Virtual Memory (EMS) : 4194304

DOS Gateway Commands (COMM=):


<DO Procedure> Commands (PROC=):


Batch File Commands (BATC=):

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: Does not create the index file

#5 Post by Auge_Ohr »

Eugene Lutsenko wrote:When attempting to create an index file error occurs, the file can not be created:

SELECT (M_KlastCls)
INDEX ON STR(Num_Klast,15)+STR(999999.9999999-Sxodstvo,19,7) TO KlastCls
i think String is too long

Code: Select all

STR(x,15) + STR(999999.9999999-y,19,7) -> 23
greetings by OHR
Jimmy

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Does not create the index file

#6 Post by Eugene Lutsenko »

Does not work. I was not like this since 1988 when I started working on the CLIPPER. It seems as if the file with the same name has been busy.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Does not create the index file

#7 Post by Eugene Lutsenko »

Happened. It works. So it turns out that you can not create a new index file with a name that is already open at the time of the index file


M_KlastCls = "KlastCls"+Ar_Model[m]
SELECT (M_KlastCls)
INDEX ON STR(Num_Klast,15)+STR(99999.9999999-Sxodstvo,19,7) TO (M_KlastCls)

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Does not create the index file

#8 Post by rdonnay »

If you use the DBFCDX or FOXCDX driver, and use tag names instead of separate index files, then you can recreate an index that is already open.
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Does not create the index file

#9 Post by Eugene Lutsenko »

Thank you, Roger! Before that I did not reach, use NTX. I'm always so glad Your messages. Very grateful to You and all the forum participants for the possibility of human communication and ongoing support.

Post Reply