[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

1570.0. "BIND to OA$DIR: Help" by SHIRE::CACHRL::Irene (Il n'y a pas le feu au lac !) Wed Oct 07 1992 11:44

Hello,

I would like to "BIND" to "OA$dir:"sys$login:*.log" but it doesn't seem 
to work. Is it possible ? The idea is to be able to read, print and 
delete various logfiles from an index.

Thanks in advance, 

Ir�ne

T.RTitleUserPersonal
Name
DateLines
1570.1bind oa$dirAIMTEC::BUTLER_TWed Oct 07 1992 14:526
    Irene,
    
    See note 921 for examples.
    
    
    Tim
1570.2Yes but ...SHIRE::CACHRL::IreneIl n'y a pas le feu au lac !Wed Oct 07 1992 16:0715
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
1570.3specify field or symbolAIMTEC::BUTLER_TWed Oct 07 1992 20:4110
    I am probaly out in right field on this!
    
    On your /alias
    
    Have you tried putting .allbutver (note the .) and/or putting
    .allbutver into a symbol and referencing the symbol in you
    /alias?
    
    
    Tim
1570.4Thoughts and fingers dont always match....SHIRE::CACHRL::IreneIl n'y a pas le feu au lac !Thu Oct 08 1992 17:5717
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

1570.5An idea or twoIOSG::SHOVEDave Shove -- REO-D/3CFri Oct 09 1992 12:0640
    
    
    
    
    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.