<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.vmssoftware.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Samk1992</id>
	<title>VSI OpenVMS Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vmssoftware.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Samk1992"/>
	<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/Special:Contributions/Samk1992"/>
	<updated>2026-05-12T04:53:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://wiki.vmssoftware.com/index.php?title=F$ELEMENT()&amp;diff=1379</id>
		<title>F$ELEMENT()</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=F$ELEMENT()&amp;diff=1379"/>
		<updated>2019-09-06T12:48:43Z</updated>

		<summary type="html">&lt;p&gt;Samk1992: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;F$ELEMENT()&#039;&#039;&#039; is a [[Lexical functions|lexical function]] that extracts one element from a string of elements. It can be used, among other things, to emulate arrays in DCL.&lt;br /&gt;
&lt;br /&gt;
=Format=&lt;br /&gt;
F$ELEMENT(element-number, delimiter, string)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Element numbers&#039;&#039;&#039; range from 0 to F$LENGTH(string).&lt;br /&gt;
&#039;&#039;&#039;Delimiter&#039;&#039;&#039; is the character used to delimit the elements in the string. For example, in &amp;quot;JAN/MAR/APR/MAY&amp;quot;, the delimiter is &amp;quot;/&amp;quot;, and in &amp;quot;John Doe&amp;quot;, the delimiter is &amp;quot; &amp;quot;.&lt;br /&gt;
&#039;&#039;&#039;String&#039;&#039;&#039; is the string containing the element.&lt;br /&gt;
&lt;br /&gt;
If the selected element does not exist in the string, the delimiter character is returned.&lt;br /&gt;
&lt;br /&gt;
=Example=&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
$ DAY_LIST = &amp;quot;MON/TUE/WED/THU/FRI/SAT/SUN&amp;quot;&lt;br /&gt;
&lt;br /&gt;
$ MONDAY = F$ELEMENT(0,&amp;quot;/&amp;quot;,DAY_LIST)&lt;br /&gt;
$ SHOW SYM MONDAY&lt;br /&gt;
   MONDAY = &amp;quot;MON&amp;quot;&lt;br /&gt;
&lt;br /&gt;
$ EIGHTH_DAY = F$ELEMENT(7,&amp;quot;/&amp;quot;,DAY_LIST) !non-existent element&lt;br /&gt;
$ SHOW SYM EIGHTH_DAY&lt;br /&gt;
   EIGHTH_DAY = &amp;quot;/&amp;quot;&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
* [[F$EDIT()]]&lt;br /&gt;
* [[F$LOCATE()]]&lt;br /&gt;
* [[F$EXTRACT()]]&lt;br /&gt;
* [[F$MATCH_WILD()]]&lt;br /&gt;
&lt;br /&gt;
[[Category: Lexical Functions]]&lt;/div&gt;</summary>
		<author><name>Samk1992</name></author>
	</entry>
	<entry>
		<id>https://wiki.vmssoftware.com/index.php?title=F$ELEMENT()&amp;diff=1378</id>
		<title>F$ELEMENT()</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=F$ELEMENT()&amp;diff=1378"/>
		<updated>2019-09-05T16:14:30Z</updated>

		<summary type="html">&lt;p&gt;Samk1992: Corrected a typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;F$ELEMENT()&#039;&#039;&#039; is a [[Lexical functions|lexical function]] that extracts one element from a string of elements. It can be used, among other things, to emulate arrays in DCL.&lt;br /&gt;
&lt;br /&gt;
=Format=&lt;br /&gt;
F$ELEMENT(element-number, delimiter, string)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Element numbers&#039;&#039;&#039; range from 0 to F$LENGTH(string).&lt;br /&gt;
&#039;&#039;&#039;Delimiter&#039;&#039;&#039; is the character used to delimit the elements in the string. For example, in &amp;quot;JAN/MAR/APR/MAY&amp;quot;, the delimiter is &amp;quot;/&amp;quot;, and in &amp;quot;John Doe&amp;quot;, the delimiter is &amp;quot; &amp;quot;.&lt;br /&gt;
&#039;&#039;&#039;String&#039;&#039;&#039; is the string containing the element.&lt;br /&gt;
&lt;br /&gt;
If the selected element does not exist in the string, the delimiter character is returned.&lt;br /&gt;
&lt;br /&gt;
=Example=&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
$ DAY_LIST = &amp;quot;MON/TUE/WED/THU/FRI/SAT/SUN&amp;quot;&lt;br /&gt;
&lt;br /&gt;
$ MONDAY = F$ELEMENT(0,&amp;quot;/&amp;quot;,DAY_LIST)&lt;br /&gt;
$ SHOW SYM MONDAY&lt;br /&gt;
   MONDAY = &amp;quot;MON&amp;quot;&lt;br /&gt;
&lt;br /&gt;
$ EIGHTH_DAY = F$ELEMENT(7,&amp;quot;/&amp;quot;,DAY_LIST) !non-existent element&lt;br /&gt;
$ SHOW SYM EIGHTH_DAY&lt;br /&gt;
  EIGHTH_DAY = &amp;quot;/&amp;quot;&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
* [[F$EDIT()]]&lt;br /&gt;
* [[F$LOCATE()]]&lt;br /&gt;
* [[F$EXTRACT()]]&lt;br /&gt;
* [[F$MATCH_WILD()]]&lt;br /&gt;
&lt;br /&gt;
[[Category: Lexical Functions]]&lt;/div&gt;</summary>
		<author><name>Samk1992</name></author>
	</entry>
	<entry>
		<id>https://wiki.vmssoftware.com/index.php?title=User:Samk1992&amp;diff=1377</id>
		<title>User:Samk1992</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=User:Samk1992&amp;diff=1377"/>
		<updated>2019-09-05T16:12:27Z</updated>

		<summary type="html">&lt;p&gt;Samk1992: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I work with OpenVMS.&lt;br /&gt;
&lt;br /&gt;
Email: contact(at)samk.io&lt;/div&gt;</summary>
		<author><name>Samk1992</name></author>
	</entry>
	<entry>
		<id>https://wiki.vmssoftware.com/index.php?title=User:Samk1992&amp;diff=1376</id>
		<title>User:Samk1992</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=User:Samk1992&amp;diff=1376"/>
		<updated>2019-09-05T16:11:03Z</updated>

		<summary type="html">&lt;p&gt;Samk1992: Created page with &amp;quot;I work with OpenVMS&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I work with OpenVMS&lt;/div&gt;</summary>
		<author><name>Samk1992</name></author>
	</entry>
	<entry>
		<id>https://wiki.vmssoftware.com/index.php?title=F$ELEMENT()&amp;diff=1375</id>
		<title>F$ELEMENT()</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=F$ELEMENT()&amp;diff=1375"/>
		<updated>2019-09-05T16:09:21Z</updated>

		<summary type="html">&lt;p&gt;Samk1992: Added a note and example in regards to the return value when the element doesn&amp;#039;t exist&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;F$ELEMENT()&#039;&#039;&#039; is a [[Lexical functions|lexical function]] that extracts one element from a string of elements. It can be used, among other things, to emulate arrays in DCL.&lt;br /&gt;
&lt;br /&gt;
=Format=&lt;br /&gt;
F$ELEMENT(element-number, delimiter, string)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Element numbers&#039;&#039;&#039; range from 0 to F$LENGTH(string).&lt;br /&gt;
&#039;&#039;&#039;Delimiter&#039;&#039;&#039; is the character used to delimit the elements in the string. For example, in &amp;quot;JAN/MAR/APR/MAY&amp;quot;, the delimiter is &amp;quot;/&amp;quot;, and in &amp;quot;John Doe&amp;quot;, the delimiter is &amp;quot; &amp;quot;.&lt;br /&gt;
&#039;&#039;&#039;String&#039;&#039;&#039; is the string containing the element.&lt;br /&gt;
&lt;br /&gt;
If the select element does not exist in the string, the delimiter character is returned.&lt;br /&gt;
&lt;br /&gt;
=Example=&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
$ DAY_LIST = &amp;quot;MON/TUE/WED/THU/FRI/SAT/SUN&amp;quot;&lt;br /&gt;
&lt;br /&gt;
$ MONDAY = F$ELEMENT(0,&amp;quot;/&amp;quot;,DAY_LIST)&lt;br /&gt;
$ SHOW SYM MONDAY&lt;br /&gt;
   MONDAY = &amp;quot;MON&amp;quot;&lt;br /&gt;
&lt;br /&gt;
$ EIGHTH_DAY = F$ELEMENT(7,&amp;quot;/&amp;quot;,DAY_LIST) !non-existent element&lt;br /&gt;
$ SHOW SYM EIGHTH_DAY&lt;br /&gt;
  EIGHTH_DAY = &amp;quot;/&amp;quot;&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
* [[F$EDIT()]]&lt;br /&gt;
* [[F$LOCATE()]]&lt;br /&gt;
* [[F$EXTRACT()]]&lt;br /&gt;
* [[F$MATCH_WILD()]]&lt;br /&gt;
&lt;br /&gt;
[[Category: Lexical Functions]]&lt;/div&gt;</summary>
		<author><name>Samk1992</name></author>
	</entry>
</feed>