Re: changing default justification



dbenedict99@xxxxxxxxx wrote:
On Jul 28, 3:53 pm, drdanny <drdanny2...@xxxxxxxxx> wrote:
when creating a file in D3, the default justification is "L". when i
have a file of strictly numeric keys, i'd like the justification to be
"R". how does, or can, one change that justification?

thanks,

danny

For the most part you should be able to just change the justification
on the File Defining Item.

There may be a few things that won't work as expected. Hopefully,
someone with better experience could highlight and quirks from
changing the FDI justification.

Do note that if you are indexing this file, AFAIK indexes are always
left justified. If your item numbers start a 1 and increment it is
sometimes helpful to pad the leading edge with zeros as this will give
much better hash experience.

hth, Dale
Sure:

First, you have to use a weird TCL command option to allow editing the D pointer:

:ED DICT [filename] [filename] (D

Once in there, just make sure you ONLY change attribute 9 from L to R and FIle the item. From this point forward, your item-ids will display (and sort, and be used against selection criteria) right justified.

I hope you don't need to index on the ID, as most of the time, item-IDs are "meaningless" to the application or the user. I'm not sure if Dale was referring to just the IDs or to indexing, but if it's related to just the IDs, then I disagree that you need to pad leading zeroes: this neither helps hashing nor helps the sorting/selecting process.

HTH!
.



Relevant Pages

  • Re: Comparing the performance of two IDS products with different architectures
    ... Comparing the performance of two IDS products with different architectures ... > Does anyone know if there is justification to compare the performance of IDS ...
    (Focus-IDS)
  • Re: Help with Correlative
    ... The IDs look like this.... ... As you can see, the number of periods between words varies, so I ... think a group extraction won't work. ... This type takes the first 8 characters, based on justification, so it should be exactly what you want. ...
    (comp.databases.pick)
  • Re: the big picture
    ... please amuse us with your justification ... Dale http://www.vedantasite.org ... see website for real email address ...
    (talk.origins)