<?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=AUXILIARY</id>
	<title>AUXILIARY - 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=AUXILIARY"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=AUXILIARY&amp;action=history"/>
	<updated>2026-06-10T15:32:10Z</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=AUXILIARY&amp;diff=813&amp;oldid=prev</id>
		<title>ConvertBot: sets NextMidas auxiliary disk/path assignments for data files</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=AUXILIARY&amp;diff=813&amp;oldid=prev"/>
		<updated>2020-04-27T22:05:05Z</updated>

		<summary type="html">&lt;p&gt;sets NextMidas auxiliary disk/path assignments for data files&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;sets NextMidas auxiliary disk/path assignments for data files&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;write&amp;gt;   The aux for writing Midas files&lt;br /&gt;
&amp;lt;read&amp;gt;    The | separated aux list for locating/reading Midas files&lt;br /&gt;
&amp;lt;aux 0:N&amp;gt; Additional entries to add to or remove from the read AUX.&lt;br /&gt;
&lt;br /&gt;
This routine is used to set the auxiliary disk paths for writing and locating&lt;br /&gt;
Midas data files.  An auxiliary, or aux, is an entry in the AUX table&lt;br /&gt;
containing an OS specific disk path name. In general, NextMidas uses names for&lt;br /&gt;
auxes instead of numbers (as in X-Midas).&lt;br /&gt;
&lt;br /&gt;
If no arguments are given, the current aux settings and associated paths are&lt;br /&gt;
displayed.&lt;br /&gt;
&lt;br /&gt;
Some 'standard' auxes common for all NextMidas systems:&lt;br /&gt;
  CWD      - Points to the Current Working Directory.&lt;br /&gt;
  HOME     - The user's login area.&lt;br /&gt;
  HOMEPATH - The current NextMidas HOME area (usually just for user macros).&lt;br /&gt;
  DAT      - The NextMidas DAT area used to store oft-used system files.&lt;br /&gt;
  RAM      - The current shell's data pipe area.&lt;br /&gt;
  1        - Special aux where the user name is appended to the midas data path.&lt;br /&gt;
&lt;br /&gt;
At any time, a NeXtMidas user references a single WRITE AUX (ID of the default&lt;br /&gt;
output AUX) aux and one or more READ AUXs (list of IDs of the AUX entries to&lt;br /&gt;
search for a file).&lt;br /&gt;
&lt;br /&gt;
  +--------------------------------------------------------------------------+&lt;br /&gt;
  | SPECIAL NOTE WHEN RUN FROM X-MIDAS:                                      |&lt;br /&gt;
  |   When NeXtMidas is running as an X-Midas option tree the AUX path is    |&lt;br /&gt;
  |   shared with X-Midas. This limits users to only using numbered AUX      |&lt;br /&gt;
  |   names other than the following NeXtMidas-managed names:                |&lt;br /&gt;
  |                                                                          |&lt;br /&gt;
  |      XMPIPE   - The mapping of the X-Midas pipes (like AUX.RAM)          |&lt;br /&gt;
  |      CWD      - Alias for AUX.0                                          |&lt;br /&gt;
  |      HOME     - Alias for AUX.98                                         |&lt;br /&gt;
  |      RAM      - NeXtMidas RAM AUX (used for pipes/in-memory files)       |&lt;br /&gt;
  |      HOMEPATH - Same as the X-Midas HOMEPATH (Mc.home_path)              |&lt;br /&gt;
  |                                                                          |&lt;br /&gt;
  |   Also note that NeXtMidas will always pair CWD and HOME as &amp;quot;0|CWD&amp;quot; and  |&lt;br /&gt;
  |   &amp;quot;98|HOME&amp;quot; this is beacuse X-Midas will only be able to see the numbered|&lt;br /&gt;
  |   AUX's. Also &amp;quot;XMPIPE|RAM&amp;quot; will always be added to the front of the path.|&lt;br /&gt;
  |                                                                          |&lt;br /&gt;
  |   Any alteration of the AUX table or the READ and WRITE AUX settings are |&lt;br /&gt;
  |   mapped between X-Midas and NeXtMidas. Changes in one will affect the   |&lt;br /&gt;
  |   other.                                                                 |&lt;br /&gt;
  +--------------------------------------------------------------------------+&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where New Files are Written:&lt;br /&gt;
  When writing files, Midas first searches the read aux path(s) for the&lt;br /&gt;
  specified file.  If it is found (the file already exists) it is overwritten&lt;br /&gt;
  in that path.  New files are created in the &amp;lt;write aux&amp;gt; disk path.&lt;br /&gt;
&lt;br /&gt;
  When any file is opened in Midas, whether for read or write, all disks in the&lt;br /&gt;
  READ AUX are searched (open for write prefers to write to an existing file in&lt;br /&gt;
  the read list).&lt;br /&gt;
&lt;br /&gt;
  What this means is that the longer your READ AUX list is, the longer it takes&lt;br /&gt;
  to open a file for output, particularly if your aux list includes networked&lt;br /&gt;
  disks. If your application requires the frequent re-opening of a file, you&lt;br /&gt;
  might try specifying its aux with a qualifier:&lt;br /&gt;
&lt;br /&gt;
    nM&amp;gt; myprim myfile.prm{AUX=MYFILES}&lt;br /&gt;
&lt;br /&gt;
  When an AUX=value is specified as a file qualifier, that AUX will be used&lt;br /&gt;
  and NeXtMidas will skip any checks for an existing file elsewhere on the&lt;br /&gt;
  READ AUX.&lt;br /&gt;
&lt;br /&gt;
  In X-Midas, the initial read aux search is disabled if the write aux&lt;br /&gt;
  value is negative.  A similar concept has been implemented in NextMidas.&lt;br /&gt;
  This behavior can be activated by putting a '-' before the aux value,&lt;br /&gt;
  even if it is named and not numbered. See the examples.&lt;br /&gt;
&lt;br /&gt;
Setting the READ AUX:&lt;br /&gt;
  The &amp;lt;read&amp;gt; parameters are used to define or alter the path list used&lt;br /&gt;
  to locate Midas data files.  The syntax of &amp;lt;read&amp;gt; is as follows:&lt;br /&gt;
&lt;br /&gt;
      n1|n2|n3... - An ordered search list of one or more aux names separated&lt;br /&gt;
                    by vertical bars or as separate arguments.&lt;br /&gt;
      ALL         - Defines the read aux list to include all paths in the AUX&lt;br /&gt;
                    table except READ,WRITE,CWD,DAT,HOME.&lt;br /&gt;
      -MYDIR      - Removes MYDIR from the current read aux list.&lt;br /&gt;
      +MYDIR      - Adds MYDIR to the end of the current read aux list.&lt;br /&gt;
      MYDIR+      - Adds MYDIR to the front of the current read aux list.&lt;br /&gt;
&lt;br /&gt;
  Also, it is possible to use the X-Midas syntax which is:&lt;br /&gt;
      AUX &amp;lt;write&amp;gt; &amp;lt;read&amp;gt; &amp;lt;r2&amp;gt; &amp;lt;r3&amp;gt; ... &amp;lt;rN&amp;gt;&lt;br /&gt;
  Where &amp;lt;r2&amp;gt;, &amp;lt;r3&amp;gt;, ... &amp;lt;rN&amp;gt; are additional AUXs to add/remove from the list.&lt;br /&gt;
&lt;br /&gt;
Defining an AUX entry:&lt;br /&gt;
  An AUX entry is added by setting an entry in the AUX table using SET or RES.&lt;br /&gt;
  For example:&lt;br /&gt;
&lt;br /&gt;
    nM&amp;gt; set aux.mydata &amp;quot;/home/smith/mydata/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  Be careful to quote the entry when setting it, otherwise NeXtMidas will&lt;br /&gt;
  convert it to upper case. To see that an entry is set, just use GET or&lt;br /&gt;
  RES. For example:&lt;br /&gt;
&lt;br /&gt;
    nM&amp;gt; get aux.mydata&lt;br /&gt;
    19S: /home/smith/mydata/&lt;br /&gt;
&lt;br /&gt;
Supported AUX Entries:&lt;br /&gt;
  NeXtMidas supports a wide array of entries in the AUX table, not just local&lt;br /&gt;
  directories (though local directories are the most common). Some of the&lt;br /&gt;
  resource types supported include:&lt;br /&gt;
&lt;br /&gt;
    Resource Type       Description/Example                              R/W&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
  | File              | - Unix or Windows directory                    | Read |&lt;br /&gt;
  | (FileResource)    | - Unix: Use full path name                     | Write|&lt;br /&gt;
  |                   |    - &amp;quot;/home/smith/mydata/&amp;quot;                     |      |&lt;br /&gt;
  |                   | - Windows: Use full path with drive letter     |      |&lt;br /&gt;
  |                   |    - &amp;quot;C:\myData\&amp;quot;                              |      |&lt;br /&gt;
  |                   | - Windows: For network drive, use alias drive  |      |&lt;br /&gt;
  |                   |   letter or remote mount point                 |      |&lt;br /&gt;
  |                   |    - &amp;quot;Z:\data\&amp;quot;                                |      |&lt;br /&gt;
  |                   |    - &amp;quot;\\NewtorkComputer\mountdir\data\&amp;quot;        |      |&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
  | HTTP              | - Reads files from a URL (web server)          | Read |&lt;br /&gt;
  | (HttpResource)    | - &amp;quot;http://my.server.com/mydir/&amp;quot;                | Only |&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
  | JAR               | - Reads files from a Java Archive (JAR)        | Read |&lt;br /&gt;
  | (JarResource)     | - Syntax is &amp;quot;jar:&amp;lt;archive&amp;gt;!&amp;lt;path&amp;gt;&amp;quot; (path must  | Only |&lt;br /&gt;
  |                   |   start with a '/')                            |      |&lt;br /&gt;
  |                   | - &amp;quot;jar:/home/smith/myjarfile.jar!/dir/datadir/&amp;quot;|      |&lt;br /&gt;
  |                   | - To read files from a JAR on web server       |      |&lt;br /&gt;
  |                   | - &amp;quot;jar:http://server/dir/file.jar!/dir/in/jar/&amp;quot;|      |&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
  | MFTP              | - Midas File Transfer Protocol client (server  | Read |&lt;br /&gt;
  | (MftpResource)    |   is part of RMIF)                             | Only |&lt;br /&gt;
  |                   | - Syntax is &amp;quot;mftp://&amp;lt;lport&amp;gt;/&amp;lt;rhost&amp;gt;:&amp;lt;rport&amp;gt;/&amp;quot;  |      |&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
  | Pipe              | - Handles pipes in the NeXtMidas pipe system,  | Read |&lt;br /&gt;
  | (PipeResource)    | - Always defined as RAM aux, do not change!    | Write|&lt;br /&gt;
  |                   | - Pipes are local to the macro                 |      |&lt;br /&gt;
  |                   |    - Shares RAM aux with RamResource           |      |&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
  | RAM               | - Handles in-memory RAM files.                 | Read |&lt;br /&gt;
  | (RamResource)     | - Always defined as RAM aux, do not change!    | Write|&lt;br /&gt;
  |                   |    - Shares RAM aux with PipeResource          |      |&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
  | RAM Disk          | - Part of the ICE option tree                  | Read |&lt;br /&gt;
  | (ICE Option Tree) | - See ICE documentation for details            | Write|&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
  | TAR File          | - Reads files from a Tape Archive (TAR) File   | Read |&lt;br /&gt;
  | (TarResource)     | - Syntax is &amp;quot;tar:&amp;lt;arch&amp;gt;!&amp;lt;path&amp;gt;&amp;quot; (path may      | Only |&lt;br /&gt;
  |                   |   start with a '/', but this is rare)          |      |&lt;br /&gt;
  |                   | - &amp;quot;tar:/home/smith/mytarfile.tar!data/&amp;quot;        |      |&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
  | TCP               | - TBD                                          | TBD  |&lt;br /&gt;
  | (TcpResource)     |                                                |      |&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
  | X-Midas Pipe      | - Handles X-Midas pipes when NeXtMidas is run  | Read |&lt;br /&gt;
  | (XmPipeResource)  |   as an X-Midas option tree                    | Write|&lt;br /&gt;
  |                   | - Always defined as XMPIPE aux, do not change! |      |&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
&lt;br /&gt;
  Special resource types that can NOT be included on the AUX table:&lt;br /&gt;
&lt;br /&gt;
    Resource Type       Description/Example                              R/W&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
  | NFILE             | - Similar to FileResource but uses native code | Read |&lt;br /&gt;
  | (NFileResource)   |   to increase performance for some applications| Write|&lt;br /&gt;
  |                   | - Used by adding USENATIVE= qualifier          |      |&lt;br /&gt;
  |                   | - Can NOT add NFileResource to AUX table       |      |&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
  | Socket            | - Reads/writes data from/to a socket           | Read |&lt;br /&gt;
  | (SocketResource)  | - Syntax is &amp;quot;stp:&amp;lt;rhost&amp;gt;:&amp;lt;rport&amp;gt;               | Write|&lt;br /&gt;
  |                   | - Full path must be used, can NOT add a socket |      |&lt;br /&gt;
  |                   |   resource to the AUX table                    |      |&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
  | UDP               | - Reads/writes data from/to a UDP socket       | Read |&lt;br /&gt;
  | (UdpResource)     | - Syntax is &amp;quot;udp:&amp;lt;port&amp;gt;&amp;quot; for input and         | Write|&lt;br /&gt;
  |                   |   &amp;quot;udp:&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;&amp;quot; for output (&amp;lt;host&amp;gt; is    |      |&lt;br /&gt;
  |                   |   usually &amp;quot;localhost&amp;quot;)                         |      |&lt;br /&gt;
  |                   | - Full path must be used, can NOT add a UDP    |      |&lt;br /&gt;
  |                   |   resource to the AUX table                    |      |&lt;br /&gt;
  +-------------------+------------------------------------------------+------+&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  1. Display the current AUX settings and associated paths AS DEFINED (user&lt;br /&gt;
     name is NOT substituted in for '+').&lt;br /&gt;
        nM&amp;gt; AUX&lt;br /&gt;
        Write AUX     = 1&lt;br /&gt;
        Read AUX List = 1|CWD|DAT|99|RAM&lt;br /&gt;
&lt;br /&gt;
        CWD           = /home/smith/                             &amp;lt;Type=File&amp;gt;&lt;br /&gt;
        HOME          = /home/smith/                             &amp;lt;Type=File&amp;gt;&lt;br /&gt;
        HOMEPATH      = /home/smith/nxm230/nxm/sys/test/         &amp;lt;Type=File&amp;gt;&lt;br /&gt;
        DAT           = /home/smith/nxm230/nxm/sys/dat/          &amp;lt;Type=File&amp;gt;&lt;br /&gt;
        RAM           = ram:                                     &amp;lt;Type=Ram&amp;gt;&lt;br /&gt;
        1             = /midas/data1/+/                          &amp;lt;Type=File&amp;gt;&lt;br /&gt;
        9             = ramd:/midas/icedisk/,RAM,372M,128M       &amp;lt;Type=RamDisk&amp;gt;&lt;br /&gt;
        11            = /data11/+/                               &amp;lt;Type=File&amp;gt;&lt;br /&gt;
        12            = /data12/+/                               &amp;lt;Type=File&amp;gt;&lt;br /&gt;
        99            = /midas/opt/xmxxx/xm/dat/                 &amp;lt;Type=File&amp;gt;&lt;br /&gt;
        WEB           = http://alice.techma.com/nm/nxm/sys/dat/  &amp;lt;Type=Http&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  2. Display the current AUX settings and associated paths AS USED (user&lt;br /&gt;
     name is substituted in for '+').&lt;br /&gt;
        nM&amp;gt; AUX/LIST&lt;br /&gt;
        Write AUX     = 1&lt;br /&gt;
        Read AUX List = 1|CWD|DAT|99|RAM&lt;br /&gt;
&lt;br /&gt;
        CWD           = /home/smith/                             &amp;lt;XmAlias=0&amp;gt;&lt;br /&gt;
        HOME          = /home/smith/                             &amp;lt;XmAlias=n/a&amp;gt;&lt;br /&gt;
        HOMEPATH      = /home/smith/nxm230/nxm/sys/test/         &amp;lt;XmAlias=98&amp;gt;&lt;br /&gt;
        DAT           = /home/smith/nxm230/nxm/sys/dat/          &amp;lt;XmAlias=n/a&amp;gt;&lt;br /&gt;
        RAM           = ram:                                     &amp;lt;XmAlias=n/a&amp;gt;&lt;br /&gt;
        1             = /midas/data1/smith/                      &amp;lt;XmAlias=n/a&amp;gt;&lt;br /&gt;
        9             = ramd:/midas/icedisk/                     &amp;lt;XmAlias=n/a&amp;gt;&lt;br /&gt;
        11            = /data11/smith/                           &amp;lt;XmAlias=n/a&amp;gt;&lt;br /&gt;
        12            = /data12/smith/                           &amp;lt;XmAlias=n/a&amp;gt;&lt;br /&gt;
        99            = /midas/opt/xmxxx/xm/dat/                 &amp;lt;XmAlias=n/a&amp;gt;&lt;br /&gt;
        WEB           = http://alice.techma.com/nm/nxm/sys/dat/  &amp;lt;XmAlias=n/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
     Since /LIST matches X-Midas, the X-Midas alias is included if applicable.&lt;br /&gt;
     The alias is used with XBC (allows running X-Midas host primitives from&lt;br /&gt;
     NeXtMidas) and NeXtOpt (NeXtMidas running as an X-Midas option tree).&lt;br /&gt;
&lt;br /&gt;
  3. Write new files to aux 1 and read from all available disks.&lt;br /&gt;
        nM&amp;gt; AUX 1 ALL&lt;br /&gt;
&lt;br /&gt;
  4. Write to aux 1 and read from aux DAT. (A minimal read list reduces search&lt;br /&gt;
     time.)&lt;br /&gt;
        nM&amp;gt; AUX 1 DAT&lt;br /&gt;
&lt;br /&gt;
  5. Set read to all auxes except the WEB.&lt;br /&gt;
        nM&amp;gt; AUX 1 ALL -WEB&lt;br /&gt;
&lt;br /&gt;
  6. Write to the current directory (read aux is unchanged).&lt;br /&gt;
        nM&amp;gt; AUX CWD&lt;br /&gt;
&lt;br /&gt;
  7. Always write to aux 1 regardless if the file exists in the read aux list&lt;br /&gt;
        nM&amp;gt; AUX -1&lt;br /&gt;
&lt;br /&gt;
  8. Always write to the current directory regardless if the file exists in the read aux list&lt;br /&gt;
        nM&amp;gt; AUX -CWD&lt;br /&gt;
&lt;br /&gt;
  9. Remove aux CWD from the current read list, write aux unchanged.&lt;br /&gt;
        nM&amp;gt; AUX ,, -CWD&lt;br /&gt;
&lt;br /&gt;
  10. Add aux DAT to the end of the current read list.&lt;br /&gt;
        nM&amp;gt; AUX ,, +DAT&lt;br /&gt;
&lt;br /&gt;
  11. Set write aux to CWD, remove auxes WEB and HOME from read list.&lt;br /&gt;
        nM&amp;gt; AUX CWD -WEB|-HOME&lt;br /&gt;
&lt;br /&gt;
  11. Remove aux WEB, append HOME, and prepend DAT from/to read list.&lt;br /&gt;
        nM&amp;gt; AUX ,, -WEB +HOME DAT+&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Switches:&lt;br /&gt;
  /LIST    - Display all valid auxes and their associated pathnames. Unlike&lt;br /&gt;
             normal listing (when no parameters given) this will &amp;quot;clean&amp;quot; the&lt;br /&gt;
             AUX paths (i.e. substitute user name for '+', remove ramdisk&lt;br /&gt;
             parameters, etc), and will include the X-Midas alias (used&lt;br /&gt;
             with XBC and NeXtOpt).&lt;br /&gt;
  /LOAD=res- Load READ and WRITE auxes from the specified result. (Since 2.9.3)&lt;br /&gt;
  /RESTORE - Restore current WRITE and READ auxes from OLDAUXREAD and&lt;br /&gt;
             OLDAUXWRITE, respectively.&lt;br /&gt;
  /SAVE=res- Save the current WRITE and READ auxes to the specified result.&lt;br /&gt;
             See also /LOAD (Since 2.9.3)&lt;br /&gt;
  /STORE   - Store current READ and WRITE auxes to OLDAUXREAD and OLDAUXWRITE,&lt;br /&gt;
             respectively.&lt;br /&gt;
  /WARN=NO - Disable warnings about invalid read/write AUX entries. [DEF=YES]&lt;br /&gt;
&lt;br /&gt;
SEE ALSO:  ENVIRONMENT, FNAME, HOMEPATH&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>