| Thanks for the answer, but I had already read that file.
I have my index up with a BIND *logs TO OA$DIR:"sys$login:*.log"
My Index display field is called FICHIERS_LOG and has a
/ALIAS=allbutver
Now my index doesn't bring up anything, even thought 10 logfiles exist
in sys$login.
I must be missing something.
Thanks,
Ir�ne
|
| Thanks TIM,
In fact I had put .ALLBUTVER and that is why it doesn't work. Rereading
my note, I found out that I was thinking without a dot ! and I was right!
by the way, I have found out that giving /ALIAS=ALLBUTVER or /ALIAS=NAME
gives the same result. From what I read in the APR manueal, NAME should
five me only the filename without device and directory....Never mind, it
will do like that.
By the way, if you have an idea of how to get the dates of the logfiles
up as well on the index...
Cheers,
Ir�ne
|
|
Assuming v3.0:
You can get the dates of a file using FILE$ - for example,
GET #x = FILE$.CREATE_DATE["foo.log"]
(or MODIFY_DATE)
the date is returned in NBS form, so you'd need to convert it to
something readable:
DATE_CONVERT #y,#x,10
To get this to display in an index, you can use the trick (described
somewhere else in this conference):
Put a 1-character field on the index, before the column where you want
to display the date (use a column which you want to appear blank, such
as one between one "real" column and the next.) Say it's called DUMMY.
Mark it (in the Forms editor) DISPLAY_ONLY NO_ECHO.
Then put in your named data something like:
;;DUMMY;;
/ALIAS=OA$FUNCTION="get #x = file$.create_date[filename]\date_convert
date_field,#x,10"
Where DATE_FIELD is the field name of the column where you want the
date displayed, and FILENAME is the field where the filespec is
displayed (or replace it with a symbol containing the filename.)
I haven't tried this exact code, but similar things work, so this may
give you some ideas.
Dave.
|