[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

481.0. "Can FOCUS handle the rdb/sql syntax 'UNION ALL'?" by SHALOT::LANPHEAR (Test the water or turn the tide?) Mon Nov 18 1991 16:54

    Hi,
    
      I have just started to work with FOCUS, and I don't have the RDB
    integration manual.  Is the manual available on-line?
    
      I currently have a RDB database with a large number of 'parallel' tables
    which have to be combined using the SQL syntax "UNION ALL" to make
    sense, and I have a number of views which utilize these union
    relationships.  Question:  Can FOCUS handle these views, and/or the
    UNION style relationships?  For example, DTR, TEAMDATA, and the
    ALL-IN-1 interface to SQL cannot handle these relationships because
    they don't have a dbkey...
    
    More information available as requested...
    
    					Thanks in advance, Dan'l
T.RTitleUserPersonal
Name
DateLines
481.1Accessing an RdB viewEVTDD1::CARRIEREJean-Claude CarriereTue Nov 19 1991 05:2129
	There are two ways in FOCUS to perform this type of operation :

	1)	Using RdB itself, the FOCUS-RDB interface access transparently
		a table or a view, therefore if a view exists which contain
		the UNION ALL clause, you'll be able to describe it by just
		referencing its name in the access file (.ACX)

	2)	Focus has an operation similar to UNION ALL in this case which
		is MATCH FILE, and will consist of running a series of requests
		against each table (therefore multiple master files) appending
		the result together. Probably not as easy but doable.

	As far as an online manual is concern, I unfortunetaly don't think
	there is one. However the AUTORDB tool lets you build quickyl the
	FOCUS description (Master file and Access File) for an RdB table or
	view.

	(Though I haven't used for a view in a long time ...)

How to use it : -type at the FOCUS prompt >EX AUTORDB
		-chose to build one master (or a multi-segment one)
		-type focus master file name, The rdb filename and location
		 the relation name (or name of the view if still working)
		 and the focus ddname (8 characters FOCUS name for the database
		 file usefull if you plan to do join should be unique for a
		 particular RdB database)

Jean-Claude
481.2It's in FOCUS, but it can run any reportsSHALOT::LANPHEARTest the water or turn the tide?Tue Nov 19 1991 10:1714
    Hi Jean-Claude,
    
      Thanks for the help.  I used the EX AUTORDB function and built my
    Rdb database into FOCUS.  However, when I use tabletalk to build a
    report, the execution always reports:
     > JOININT        CALLED TO READ DATA
     (FOC1451) FILEDEF MISSING FOR EXTERNAL FILE : RDBFIL
     >
    
      My manual only has error messages through FOC1123...  I have tried
    building just a single master, but it also reports 1451.  How do I make
    it work?
    
    				Thanks in advance, Dan'l
481.3the FILEDEF theoryBIS1::SCHYNSTue Nov 19 1991 12:2420
    The filedef command is used to link a database to a master file.
    By default, when entering tabletalk, FOCUS will look to  a data file
    in the working directory with the same name than the master file.
    
    So if your rdb database is in another directory, you should tell focus
    where to find the data related to a master file.
    The syntax is as follows :
    
    	FILEDEF  xxxxx DISK []yyyyyyy
    
    where xxxxx is you master file name and []YYYYYY is the directory and
    database name.
    
    You could type this instruction at the focus prompt, include it in a
    FEX file, or have it automatically performed when accessing focus.
    In this last case, you have to create a file called PROFILE.FEX
    where you put the FILEDEF command.  When accessing FOCUS, the tool
    will search for that file such as DCL search for a LOGIN.COM file.
    
    Herve.
481.4FILEDEF solves the problemSHALOT::LANPHEARTest the water or turn the tide?Tue Nov 19 1991 13:4312
    Hi Herve,
    
      Thanks!  That helps a lot.  I had just used SET WATCH FILE and found
    that it was looking for RDBFIL.RDB (and .SNP of course) but obviously
    my database name isn't RDBFIL.  The FILEDEF command will straighten
    everything out.  I had hoped that EX AUTORDB would put the 
    appropriate FILEDEF commands into the master files it created :-)  Is
    this a bug or just a feature?
    
      I'll try to obtain the FOCUS/RDB documentation for future reference.
    
    					Thanks, Dan'l