Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

After you have committed your new file definition, the File Definition Menu (Create) is displayed for you to select the fields which make up the record layout.

Before you can do this, your fields must have been defined using the procedures described in Building the LANSA Repository - Fields.

1.  Select the Define fields in file definition option and press Enter.

Panel

 pppFILREV                      File Definition Menu (Create)                  

 Enter number of function or place cursor on same line and press Enter.

  1  1. Define fields in file definition                               
     2. Define logical views of file                                   
     3. Define file validation checks                                  
     4. Define access routes to other files                            
     5. Define virtual fields                                          
     6. Define batch control logic                                     
     7. Review or change database file attributes                      
     8. Review or change file multilingual attributes                  
     9. Load definition of file not maintained by LANSA                
    10. Exit from LANSA                                                


 File being worked with is . . . . : File Description                  
 Name and library are  . . . . . .  : FileName    Library               

 F1=

Help  F3=Exit  F12=Cancel  F14

Help       F3=Exit       F12=Cancel       F14=Messages         

The Display Fields in File Definition screen is presented.

Panel

 DC@P200501              Display Field Definition                      

 File :  FileName   Library    File Description             (Language) 

                                                                           Primary        
  Seq   Name       Description                             Ke1y order Src  



  File FileName from Library currently has no fields defined in it.    

  F1=

Help  F3=Exit  F6

Help       F3=Exit       F6=Add/

Create  F12=Cancel  F4

Create       F12=Cancel       F4=Messages  

As this is a new file, there are no fields displayed.

2.  Select F6 (Add/Create) and the Add Field Definition screen is displayed.

Panel

 DC@P200501     

...

            Add Field Definition                        

 File :  FileName   Library    File Description             (Language) 

...

                                                                            Primary        
  Seq       Name       Description                          Key order Src  
  ___         ________

...

                                                          __        
  ___         __

...

______

...

                                                          __        
  __

...

_         ________

...

                                                          __        
  ___         __

...

______

...

                                                          __        
  __

...

_         ________

...

                                                          __        
  __

...

_         ________

...

                                                          __        
  ___         __

...

______

...

                                                          __        
  ___

...

         ________

...

                                                          __        

...

  File FileName from Library currently has no fields defined in it.    

...

  F1=

...

Help       F3=Exit       F12=Cancel       F4=Messages    

...

 |
3.  You can choose to either:

  • enter Enter the names of the fields to be included in the file.

     or

  • request Request a list of fields to select from.

     If If you choose to enter the field names, LANSA will attempt to find the matching field details. If a name that you have entered happens to be a partial name of another field, all the other fields containing the partial name will be displayed with a message telling you what has been displayed.     To

To request a list of fields to choose from, in Name, enter:

  • ? for a list of every field recorded in the Repository.
  • a A partial name, for a list of the fields which match generically.

     DEM DEM has been used as the partial name in this example:

Panel

 

...

DC@P800501               Select Field from Data Dictionary                


 Either Choose field required from list below,                         
 Or     Enter a new full or partial search name :   DEM                  

 Sel     Field             Description                                  Typ   Len  Dec  
  __      NAMCDE      Name and Address Code            A      11       
  __      DEMAD1      Address Line 1                             A      25       
  __      DEMAD2      Address Line 2                             A      25       
  __      DEMAD3      Address Line 3                             A      25       
  __      DEMCAT      Product Category                         A      13           + 


 F1=Help       F12=Cancel       F14=Messages          

Select  |
     Select the fields for the file by entering a sequence number in the Sel column. If you want different fields listed, use the Page Down key or re-enter the selection criteria.
     The fields you select are displayed immediately in the top half of the screen.

...