This code might be helpful. It is run as check_keys <fileName>
sentence=CHANGE(@SENTENCE,SPACE(1),@AM)
PROMPT \\
i=0
fileName=sentence<2>
OPEN fileName TO hdl.fileName ELSE STOP 201, fileName
SELECT hdl.fileName TO cursor
done = @FALSE
LOOP UNTIL done DO
READNEXT id.fileName FROM cursor THEN
i++
IF id.fileName NE OCONV(id.fileName, \MCP\) THEN
CRT \Bad: HEX(id)=\:OCONV(id.fileName, \MX0C\):\ |
MCP(id)=\:OCONV(id.fileName,\MCP\):\ -- DELETE?\:;INPUT yn
IF OCONV(yn[1,1],\MCU\) EQ \Y\ THEN
DELETE hdl.fileName, id.fileName
CRT \deleted.\
END
END
END ELSE
done = @TRUE
END
UNTIL done DO REPEAT
CRT i:\ keys checked\
On Wednesday, May 12, 2021 at 10:24:59 AM UTC-6 Richard Kann wrote:
> Is it possible you have a bad item id in the file containing revered
> control characters? If you do a list of the file do any odd looking id's
> show? You may not be able to edit them too just as an fyi as the select may
> only be pulling part of the bad id if due to control chars like vlaue
> marks, attr marks, orctr-J ctrl-L etc.
>
>
> On 5/12/2021 11:36 AM, Scott Clift wrote:
>
> When selecting all the items in a file, and then saving the results of the
> select, there is a item ID that looks odd.
>
> The ID appears as .4................ in the list.
>
> Looks like jbase tries to open item number 4, which doesn't exist.
>
> Any ideas on how to delete this seemingly junk item?
>
> --
> --
>
> --
>
> *Richard Kann*
> [image: cwslogo]
>
> *Comp-Ware Systems, Inc.*
> phone: 800-494-7671 <(800)%20494-7671>
> email: [email protected]
> www.comp-ware.net
>
--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
---
You received this message because you are subscribed to the Google Groups
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jbase/28c878b5-9f32-4882-9783-d7dd84af8a3dn%40googlegroups.com.