[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

3016.0. "Difference OA$DIR and FILE$ DSAB ?" by UTRTSC::SMEETS (Martin, CSC Office support (NL)) Fri Jul 16 1993 09:10

Hi,

As discussed in topic 2999 OA$DIR SDAB is kind of superseeded bij the FILE$ 
DSAB in ALL-IN-1 V3.0.

It seems to me that the FILE$ DSAB doesn't work correctly.

I've created the two following forms

FORM1:
-----

;;FCVMSFILE;;

/PUT_SAVE=#VMSFILE/HARD=OA$_DT_HRD_VMS_FILE
/VALID=OA$DIR_PARSE:"OA$LIB:*.*"/RECOG=OA$DIR_SEARCH:"OA$LIB:*.*"


FORM2:
------
;;FCVMSFILE;;

/PUT_SAVE=#VMSFILE/HARD=OA$_DT_HRD_VMS_FILE
/VALID=FILE$:PARSED_SPEC/RSE_RECOG=FILE$ with .spec eqs "OA$LIB:*.*"


I entered "P*.COM" in field FCVMSFILE on FORM1 and pressed return, I got a 
listing of all COM files starting with "P" in OA$LIB. If however I did the same 
in FORM2 I got a listing of ALL files in oA$LIB. 

Did I something wrong or is this a bug .....

Martin

T.RTitleUserPersonal
Name
DateLines
3016.1is known,thanksIOSG::TYLDESLEYFri Jul 16 1993 10:126
    Hi Martin.
    The handling of wild card characters by FILE$ is a known problem. I
    hit it with a vengeance about two weeks ago. We hope to provide a fix 
    in a PFR.
    Cheers
    DaveT
3016.2Change syntax of RSE_RECOGSCOTTC::MARSHALLSpitfire Drivers Do It ToplessFri Jul 16 1993 13:1418
Hi,

Here's the problem:

/RSE_RECOG=FILE$ with .spec eqs "OA$LIB:*.*"
                                 ^^^^^^^^^^
You're telling FILE$ to match against everything in OA$LIB, so that's exactly
what it does.  Try this instead:

/RSE_RECOG=FILE$ with .spec eqs FCVMSFILE

which will limite the search to filenames matching what you've typed into the
field.

I don't know about the wildcard problem DaveT cites, that may still be
your undoing...

Scott
3016.3try Scott's solution firstIOSG::TYLDESLEYFri Jul 16 1993 14:566
    Sorry, yes - should have noticed that, Scott, but I have a situation
    in a certain index, where, after selecting all the files that match 
    the search criteria, the index continues to fill with all the other
    files in the directory. 
    Cheers
    DaveT
3016.4It's still not what I wantUTRTSC::SMEETSMartin, CSC Office support (NL)Fri Jul 16 1993 14:5714
Re. 2

Hi Scott,

> You're telling FILE$ to match against everything in OA$LIB, so that's exactly
> what it does.  Try this instead:
>
>/RSE_RECOG=FILE$ with .spec eqs FCVMSFILE

Yes, I've tried this myself, but the problem with this is that you have to 
specify the directory specification also, I rather prefer to look in OA$LIB by 
default (so without specifying it additionally)

Martin
3016.5One of many possibilitiesSCOTTC::MARSHALLSpitfire Drivers Do It ToplessFri Jul 16 1993 17:5315
>>>/RSE_RECOG=FILE$ with .spec eqs FCVMSFILE
>>
>>Yes, I've tried this myself, but the problem with this is that you have to 
>>specify the directory specification also, I rather prefer to look in OA$LIB by 
>>default (so without specifying it additionally)

OK, try:

/RSE_RECOG=FILE$.FILE with .spec eqs FN$CONCAT("OA$LIB:",FCVMSFILE)

I've refined it a bit more to use .FILE, so that it only puts the filename
(without OA$LIB:) back into the field if you select an entry from the search
list.

Scott
3016.6Now, it works, Thanks !!!!!!!UTRTSC::SMEETSMartin, CSC Office support (NL)Mon Jul 19 1993 18:560
3016.7An addition to .5WOTVAX::PC0866::DoranBrain the size of a planet... but I still work here!Tue Jul 20 1993 14:4214
Just a quick addition to .5 ...

I have used the example that Scott gave - thank you!!, with a slight simple 
change...

/RSE_RECOG=FILE$.FILE WITH .SPEC EQS FN$CONCAT("OA$LIB:",FCVMSFILE,"*")

This allows the user to put in a part name and hit FIND (GOLD-L). The example 
in .5 would need the user to put in the * in the field - not something 
immediately obvious to some users...

Cheers,

Andy