[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

312.0. "Header records" by TOLKIN::HOLLOCHER (LIVEDEAD) Thu Feb 08 1990 10:55

    
    
    Hi,
    
    I am trying to use the TABLE command using a file that contains
    a header record.  The .MAS has been set up like the following:
    
    	FILENAME=EXAMPLE	,SUFFIX=FIX,$
          SEGNAME=EXAM,$
           FIELDNAME=SEGTYPE   ,ALIAS=2   ,USAGE=I1,   ACTUAL=I1,$
                                  .
                                  .
                             DATA FIELDS
                                  .
                                  .
          SEGNAME=HEADER         ,PARENT=EXAM,$
    	   FIELNAME=SEGTYPE  ,ALIAS=1  ,USAGE=I1,     ACTUAL=I1,$
                                  .
                            HEADER RECORD FIELDS
    
    The header key to the external file is 1 and each data field has
    a key of 2.  The reserved fieldname SEGTYPE is used to identify
    these records.  The problem is that no records ever get selected
    during the table commands.  I have used all kinds of table 
    commands, but no records are selected.  I know there is data in
    there, its ~ 10,000 blocks in size.  I know the table commands
    aern't at fault.
    
    Has anyone tried this?
    
    Thank You
    
    
    
T.RTitleUserPersonal
Name
DateLines
312.1Need RECTYPEPLOP::COYLEFri Feb 09 1990 09:259

     I think you might want to read the section on sequential files with
multiple record types in the FOCUS Users Manual (pg 3-37).  It describes
how to use the FIELDNAME=RECTYPE... definition in your master file to 
identify the different record types and gives an example.


                                     KC