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

Conference ilbbak::ibi_focus

Title:FOCUS, from INFORMATION BUILDERS
Moderator:ZAYIUS::BROUILLETTE
Created:Thu Feb 19 1987
Last Modified:Mon May 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:615
Total number of notes:1779

186.0. "FOCUS,RDB and logicals" by PNO::TOBIN () Thu Mar 02 1989 12:54

    Does anyone have an solution for this problem or is it just something
    that we have to live with?
    
    	I am trying to access an RDB database whose name is > 8 characters,
        without setting the FOCUS default to the directory which contains
    	the RDB database or renaming the RDB database to 8 characters
        or less.
    
    	I have tried assigning a logical at DCL defining where the
    	directory and database name and then using filedef within
        FOCUS.
    
    	      $	ASSIGN dbfile TO device:[directory]dbname.rdb
              >>FILEDEF ddname DISK dbfile
    
       The above does not work.
                
    
      Has anyone had any luck doing this?
    
      Thanks,
    
      Lou                      
    
T.RTitleUserPersonal
Name
DateLines
186.1dirILO::MCKNIGHTMichael McKnight @ILO Data Mgt. TTCFri Mar 03 1989 09:4912
I use the following

	$ DEFINE logical_name INFO$DISK1:[MAXCIMDB]
	$ FOCUS
 	FOC> FILEDEF MAXCIM DISK logical_name:MAXCIM.RDB


	This works for me.

		Rgds

		Michael
186.28 char limitPNO::TOBINFri Mar 03 1989 16:3816
    Michael,
    
    	What you have defined does work, but not if the RDB database
    	name is longer than 8 characters, and I have not been able
    	to get FOCUS to recognize either a logical or a filedef for
    	the more than an 8 character DB.  As I stated before a logical
    	will work for an RDB database name that is longer than 8 chars,
    	as long as you set default to the area where the DB resides.
    	But the problem is I have a database that is longer than 8 
        characters and I don't want to set default to the DB area.
      
    
    	Regards,
    
    	Lou
           
186.3use SET FILE/ENTERNCPROG::KERNSFast - maybe, Good - maybe, Cheap - never!Sat Mar 04 1989 23:099
The best solution is to name the file with less than 8 characters. But
you can give the file another name along with its current file. Use the
following:

	SET FILE/ENTER=8_char_file_name old_filename

We had the same problems with FOCUS and this is what New York came up with.

Steve
186.4NCPROG::KERNSFast - maybe, Good - maybe, Cheap - never!Sat Mar 04 1989 23:134
I forgot to mention that you will have two files listed when you do a DIR
but note that they are the same file. The file just has two names.

Steve
186.55.2.1 solves problemPNO::TOBINMon Mar 06 1989 14:4411
    Steve,
    
    	Thanks for your input.  I talked with New York this morning
    and they told me the same thing as you did.  Also they said that
    version 5.2.1 will solve this problem.  We are installing 5.2.1
    tonite......here's hoping their right.
    
    
    Thanks,
    
    Lou
186.6NCPROG::KERNSFast - maybe, Good - maybe, Cheap - never!Wed Mar 08 1989 10:008
Don't count on it. 8 character filenames are still required in v5.2.1. 
Also make a note that V5.2.1 does NOT translate logicals. You have
to give it dev:[dir]filename.ext. We've had 5.2.1 installed now
for a few weeks and the only improvement to was the
READ/WRITE interface to Rdb (or at least thats all we seen).

Steve