Previous Next        Current Page: NeXtMidas Training / Working with Files / Basic File Commands / DATALIST - Listing file data
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
   - File Basics   
   + The AUX List   
   - Basic File Commands   
      - FILES - Finding files   
      - FNAME - Forming file names   
      - STATUS - Listing file headers   
      - DATALIST - Listing file data   
      - HEADERMOD - Modifying file headers   
      - FILE - Modifying file data   
   + Lab 1   
   + File Names   
   + File Types   
   + Lab 2   
   + Listing Files   
   + Lab 3   
   + Plotting Files   
   + Lab 4   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • The DATALIST Command:
    • The DATALIST command is used to show the data in a file.
      nM> datalist world.dbf 0 2   
        0: Record index: 0.0
          CODE = AW
          NAME = Aruba
          POPULATION =      67074
          CURRENCY = Florin
          CURR_CODE = AWG
          FIPS = AA
        1: Record index: 1.0
          CODE = AC
          NAME = Antigua and Barbuda
          POPULATION =      65212
          CURRENCY = EC Dollar
          CURR_CODE = XCD
          FIPS = AC
    • The rules for DATALIST are similar to those for STATUS
X-Midas Users Take Note:
Think of data addressing as one-based in X-Midas (follows Fortran standards) and zero-based in NeXtMidas (follows C/C++/Java standards). Some people like to think of the difference in terms of using an index value in X-Midas and using an offset value in NeXtMidas, though this terminology is far from universal (officially Java and Fortran both use the term "index" but with different definitions).