<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=DATALIST</id>
	<title>DATALIST - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=DATALIST"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=DATALIST&amp;action=history"/>
	<updated>2026-04-19T08:59:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=DATALIST&amp;diff=797&amp;oldid=prev</id>
		<title>ConvertBot: lists data elements of a Midas, Text, or binary file</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=DATALIST&amp;diff=797&amp;oldid=prev"/>
		<updated>2020-04-27T22:04:59Z</updated>

		<summary type="html">&lt;p&gt;lists data elements of a Midas, Text, or binary file&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;lists data elements of a Midas, Text, or binary file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;FILE&amp;gt;   Midas data, Text, or binary file to list&lt;br /&gt;
&amp;lt;START&amp;gt;  Offset of first element or line to list (0..n) A negative number&lt;br /&gt;
         indicates a position relative to the end of the file. A fractional&lt;br /&gt;
         number will be converted to the floor of the fraction when not in&lt;br /&gt;
         Abscissa mode. &lt;br /&gt;
&amp;lt;NELEM&amp;gt;  Number of elements to list. [DEF=32; if START&amp;lt;0 DEF=list to EOF]&lt;br /&gt;
&amp;lt;ABSC&amp;gt;   Index or Abscissa mode for &amp;lt;START&amp;gt; and &amp;lt;NELEM&amp;gt; parameters [DEF=INDEX]&lt;br /&gt;
&amp;lt;FORM&amp;gt;   Override the format in the file&lt;br /&gt;
&lt;br /&gt;
This routine lists the specified range of a Midas data file, Text file, binary&lt;br /&gt;
file to the terminal. If the file handler supports advanced listing of the file&lt;br /&gt;
by implementing the ListFile interface, it's data can also be listed based on&lt;br /&gt;
the file handler's implementation (e.g. CSV, DBF, JAR, TAR, ZIP are supported).&lt;br /&gt;
&lt;br /&gt;
The /NC=n or number of columns switch can be used to set the number of columns&lt;br /&gt;
of data in the output display.  By default, the number of columns is set to&lt;br /&gt;
the maximum number of elements of the particular data type that can be&lt;br /&gt;
displayed in an 80 character window.&lt;br /&gt;
&lt;br /&gt;
Since NeXtMidas 2.7.0, unknown file types or files with the FG=RAW qualifier&lt;br /&gt;
will be printed in a hexdump-compatible format with HEX and ASCII values shown.&lt;br /&gt;
This feature is only enabled if &amp;lt;FORM&amp;gt; is not specified.&lt;br /&gt;
&lt;br /&gt;
Since NeXtMidas 2.9.0, a negative number can be given for the START. This will&lt;br /&gt;
indicate that the user wishes to show the 'tail end' of the data (i.e. all the&lt;br /&gt;
data from (EOF-START) to EOF, unless NELEM is specified).&lt;br /&gt;
&lt;br /&gt;
Since NeXtMidas 2.9.0, an abscissa can be given for the START. Abscissa is &lt;br /&gt;
indicated by either using the tilde ('~') at the beginning of the number given &lt;br /&gt;
in START or by using ABSC=true. &lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  1. List data of a Type 1000 file (CF) starting from the 10th element and using&lt;br /&gt;
     one column per data element.&lt;br /&gt;
      nM&amp;gt; datalist nxm.sys.dat.sinewave.prm 9 /nc=1&lt;br /&gt;
&lt;br /&gt;
  2. List first ten (10) data elements (frames) of a Type 2000 file:&lt;br /&gt;
      nM&amp;gt; datalist nxm.sys.dat.apenny.prm 0 10&lt;br /&gt;
&lt;br /&gt;
  3. List data records of a Type 3000 file&lt;br /&gt;
      nM&amp;gt; datalist nxm.sys.dat.test3000.prm&lt;br /&gt;
&lt;br /&gt;
  4. List data records of a Type 5000 file&lt;br /&gt;
      nM&amp;gt; datalist nxm.sys.dat.sv1.prm&lt;br /&gt;
&lt;br /&gt;
  5. List data records of a Type 6000 file&lt;br /&gt;
      nM&amp;gt; datalist nxm.sys.dat.test6000.prm&lt;br /&gt;
&lt;br /&gt;
  6. Show the first two (2) lines of a text file:&lt;br /&gt;
      nM&amp;gt; datalist nxm.sys.dat.cities.txt 0 2&lt;br /&gt;
&lt;br /&gt;
  7. Show the last fifty lines in a text file&lt;br /&gt;
      nM&amp;gt; data nxm.sys.dat.cities.txt -50&lt;br /&gt;
&lt;br /&gt;
  8. Show the last 20 lines of a text file (starting 50 from the EOF).&lt;br /&gt;
      nM&amp;gt; data nxm.sys.dat.cities.txt -50 20&lt;br /&gt;
&lt;br /&gt;
  9. Show the last 5 elements (bytes) in an image (binary) file:&lt;br /&gt;
      nM&amp;gt; data nxm.sys.dat.Sunset.jpg -5&lt;br /&gt;
&lt;br /&gt;
 10. Show the first four data records in an DBF (database) file:&lt;br /&gt;
      nM&amp;gt; data nxm.sys.dat.world.dbf ,, 4&lt;br /&gt;
&lt;br /&gt;
 11. Show the data records in an CSV (text database) file:&lt;br /&gt;
      nM&amp;gt; data nxm.sys.dat.airports.csv&lt;br /&gt;
      &lt;br /&gt;
 12. Show the value of the third piece of data in a Type 1000 file &lt;br /&gt;
     (with a start of 100.0 and a delta of .1) &lt;br /&gt;
      nM&amp;gt; data junk1000 ~100.2 nelem=1&lt;br /&gt;
            -or -&lt;br /&gt;
      nM&amp;gt; data junk1000 START=100.2 NELEM=1 ABSC=ABSC&lt;br /&gt;
&lt;br /&gt;
Switches:&lt;br /&gt;
  All Files:&lt;br /&gt;
    /L   - Show data element positions of data in file (0..n). [DEFAULT=TRUE]&lt;br /&gt;
           For text file this is the line number.&lt;br /&gt;
    /SW= - TBD - screen width&lt;br /&gt;
  Data Files ONLY:&lt;br /&gt;
    /ABS - TBD - show abscissa value for each line&lt;br /&gt;
    /BIN - display data file in binary format&lt;br /&gt;
    /H   - display data file header as well&lt;br /&gt;
    /HEX - display data files in hexadecimal format&lt;br /&gt;
    /K   - display data file keywords as well&lt;br /&gt;
    /NC= - number of columns (1000/2000 only)&lt;br /&gt;
    /NW= - DEPRECATED - Use /SW&lt;br /&gt;
    /P   - display data file packet headers&lt;br /&gt;
    /SW= - limit the screen width [DEF=computed internally]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>