<?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=FNAME</id>
	<title>FNAME - 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=FNAME"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=FNAME&amp;action=history"/>
	<updated>2026-11-30T03:38:51Z</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=FNAME&amp;diff=714&amp;oldid=prev</id>
		<title>ConvertBot: forms a full filename from its components</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=FNAME&amp;diff=714&amp;oldid=prev"/>
		<updated>2020-04-27T22:04:35Z</updated>

		<summary type="html">&lt;p&gt;forms a full filename from its components&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;forms a full filename from its components&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;LABEL&amp;gt; - Results label to hold the full filename&lt;br /&gt;
&amp;lt;AREA&amp;gt;  - Midas software branch (HOST, CFG, DAT, etc) or aux name if &amp;lt;OPT&amp;gt;=AUX&lt;br /&gt;
&amp;lt;NAME&amp;gt;  - Filename (MYFILE, DEMUX, etc.)&lt;br /&gt;
&amp;lt;EXT&amp;gt;   - Filename extension (&amp;quot;txt&amp;quot;, &amp;quot;mm&amp;quot;, etc.)&lt;br /&gt;
&amp;lt;OPT&amp;gt;   - Option name (SYS, UCL, DSP, etc.) or &amp;quot;AUX&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This command splices together a filename unique to the OS and option area&lt;br /&gt;
selected.  The root of an option tree can be found by entering empty strings&lt;br /&gt;
for &amp;lt;AREA&amp;gt;, &amp;lt;NAME&amp;gt; and &amp;lt;EXT&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;OPT&amp;gt; is set to AUX, &amp;lt;area&amp;gt; is assumed to be a data auxiliary, otherwise&lt;br /&gt;
it is assumed to be a subdirectory of the named option tree.  Since NeXtMidas&lt;br /&gt;
3.5.4, the WRITE AUX path is now fully resolved.&lt;br /&gt;
&lt;br /&gt;
If the /PARSE switch is present, the command works in reverse with ONE&lt;br /&gt;
IMPORTANT DIFFERENCE -  The &amp;lt;AREA&amp;gt; arg will actually contain the path.  No&lt;br /&gt;
attempt is made to relate this to an area.  Given a fully specified filename&lt;br /&gt;
in &amp;lt;LABEL&amp;gt;, the components will be written into the results names specified in&lt;br /&gt;
the &amp;lt;AREA&amp;gt;, &amp;lt;NAME&amp;gt;, and &amp;lt;EXT&amp;gt; slots where:&lt;br /&gt;
  &amp;lt;AREA&amp;gt; - Is the file path&lt;br /&gt;
  &amp;lt;NAME&amp;gt; - Is the file root name (without extension)&lt;br /&gt;
  &amp;lt;EXT&amp;gt;  - Is the file extension&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
 To find the ROOT directory of the SYS option tree:&lt;br /&gt;
    nM&amp;gt; FNAME sysDir AREA=&amp;quot;&amp;quot; NAME=&amp;quot;&amp;quot; EXT=&amp;quot;&amp;quot; OPT=SYS&lt;br /&gt;
&lt;br /&gt;
 To parse the filename in the results myfile into its path, name, and ext&lt;br /&gt;
    nM&amp;gt; FNAME/PARSE myfile itspath itsname itsextension&lt;br /&gt;
&lt;br /&gt;
 To name a file in the users home directory:&lt;br /&gt;
    nM&amp;gt; FNAME myfile HOME mymacro mm AUX&lt;br /&gt;
&lt;br /&gt;
 To name a file in the users write directory:&lt;br /&gt;
    nM&amp;gt; FNAME myfile WRITE log txt AUX&lt;br /&gt;
    Note: Since NeXtMidas 3.5.4, the path is fully resolved.&lt;br /&gt;
    nM&amp;gt; res myfile&lt;br /&gt;
    24S: MYFILE          = \midas\data1\usr\log.txt&lt;br /&gt;
&lt;br /&gt;
 To name a file in aux=99 directory:&lt;br /&gt;
    nM&amp;gt; FNAME myfile 99 world prm AUX&lt;br /&gt;
&lt;br /&gt;
 To open some java code from the macro language&lt;br /&gt;
    nM&amp;gt; FNAME mycode prim plot java sys&lt;br /&gt;
    nM&amp;gt; FILE open/t myfile mycode&lt;br /&gt;
&lt;br /&gt;
 You can also reference a file in the software tree directly using the &amp;quot;nxm dot&amp;quot;&lt;br /&gt;
 package syntax:&lt;br /&gt;
    nM&amp;gt; FILE open/t myfile nxm.sys.prim.plot.java&lt;br /&gt;
&lt;br /&gt;
Switches:&lt;br /&gt;
  /FNCASE= - Sets the FileName case-sensitivity (LowerCase,KeepCase,AutoCase)&lt;br /&gt;
             similar to the FNCASE= qualifier. This only applies when /PARSE is&lt;br /&gt;
             *not* used.                                 (Since NeXtMidas 3.3.1)&lt;br /&gt;
  /PARSE   - Parse the file given by &amp;lt;LABEL&amp;gt; into its path (&amp;lt;AREA&amp;gt;), root name&lt;br /&gt;
             and extension. FileName case-sensitivity can be set via the FNCASE=&lt;br /&gt;
             qualifier on the file name passed in.&lt;br /&gt;
&lt;br /&gt;
See Also:  FILE FUNC=NAME&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>