<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://brwiki2.brulescorp.com/brwiki2/index.php?action=history&amp;feed=atom&amp;title=Substitute</id>
	<title>Substitute - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://brwiki2.brulescorp.com/brwiki2/index.php?action=history&amp;feed=atom&amp;title=Substitute"/>
	<link rel="alternate" type="text/html" href="https://brwiki2.brulescorp.com/brwiki2/index.php?title=Substitute&amp;action=history"/>
	<updated>2026-04-18T14:39:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://brwiki2.brulescorp.com/brwiki2/index.php?title=Substitute&amp;diff=2431&amp;oldid=prev</id>
		<title>Laura: Created page with &quot;The &#039;&#039;&#039;Substitute&#039;&#039;&#039; config specification substitutes all references to one file name string with another file name string in commands and OPEN statements.  You can now re...&quot;</title>
		<link rel="alternate" type="text/html" href="https://brwiki2.brulescorp.com/brwiki2/index.php?title=Substitute&amp;diff=2431&amp;oldid=prev"/>
		<updated>2013-04-04T20:46:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The &amp;#039;&amp;#039;&amp;#039;Substitute&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;/brwiki2/index.php?title=Config&quot; title=&quot;Config&quot;&gt;config&lt;/a&gt; specification substitutes all references to one file name string with another file name string in commands and OPEN statements.  You can now re...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;Substitute&amp;#039;&amp;#039;&amp;#039; [[config]] specification substitutes all references to one file name string with another file name string in commands and OPEN statements.&lt;br /&gt;
&lt;br /&gt;
You can now redirect the Ctrl-P (print screen) output to a file/printer of your choice by substituting &amp;#039;PRN:/10&amp;#039; with the SUBSTITUTE specification. The following example sends Ctrl-P output to LPT2:&lt;br /&gt;
&lt;br /&gt;
 SUBSTITUTE PRN:/10,LPT2:&lt;br /&gt;
&lt;br /&gt;
====Comments and Examples====&lt;br /&gt;
The following one-line addition to BRConfig.sys allows you to use a serial printer instead of a parallel printer as the default printer on DOS or NetWork systems:&lt;br /&gt;
&lt;br /&gt;
 SUBSTITUTE PRN:/10,COM1:&lt;br /&gt;
&lt;br /&gt;
On a Unix / Linux system, the following SUBSTITUTE specification changes the execution of programs written for the first serial port on a DOS system so that tty22 will be used instead:&lt;br /&gt;
&lt;br /&gt;
 SUBSTITUTE COM1:,:/dev/tty22&lt;br /&gt;
&lt;br /&gt;
While [[Business Rules!]] is in execution, a single SUBSTITUTE specification may be specified or removed without affecting the remainder of the substitute table. The following example removes the substitution specified above from the substitute list (the BRConfig.sys file is not changed by this command, it is simply overridden):&lt;br /&gt;
&lt;br /&gt;
 CONFIG SUBSTITUTE COM1:,:/dev/tty22 CLEAR&lt;br /&gt;
&lt;br /&gt;
All substitutions (except [WSID] substitutions) may be removed with the following command:&lt;br /&gt;
&lt;br /&gt;
 CONFIG SUBSTITUTE CLEAR&lt;br /&gt;
&lt;br /&gt;
====Syntax====&lt;br /&gt;
[[file:Substitute.png|700px]]&lt;br /&gt;
&lt;br /&gt;
====Diagram Default====&lt;br /&gt;
Add the specified substitution to the substitution table.&lt;br /&gt;
&lt;br /&gt;
====Start-up Default====&lt;br /&gt;
Use no file name substitutions.&lt;br /&gt;
&lt;br /&gt;
====Parameters====&lt;br /&gt;
&amp;quot;String1&amp;quot; is either a full or partial file name reference that is to be replaced with a substitution.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;String2&amp;quot; is either a full or partial file name reference that is to be used in place of all program references to string1.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;CLEAR&amp;quot; parameter is functional only when SUBSTITUTE is specified with the CONFIG command.&lt;br /&gt;
&lt;br /&gt;
When specified immediately after the SUBSTITUTE keyword, CLEAR removes all substitutions (including those previously specified with CONFIG) from the substitution list. When specified after the &amp;quot;string1&amp;quot; and &amp;quot;string2&amp;quot; parameters, CLEAR removes only the specified substitution from the list&lt;br /&gt;
&lt;br /&gt;
====Technical Considerations====&lt;br /&gt;
# The CONFIG command can be used during program execution to specify or remove SUBSTITUTE specifications.&lt;br /&gt;
# Business Rules converts all SUBSTITUTE parameters to uppercase except those that begin with a colon.&lt;br /&gt;
# All Unix / Linux file name references must begin with a colon.&lt;br /&gt;
# See the Multi-User Programming chapter for more information about using SUBSTITUTE to change printers.&lt;br /&gt;
# The STATUS SUBSTITUTE command provides a listing of all currently active substitutions specified by CONFIG SUBSTITUTE or the BRConfig.sys file.&lt;br /&gt;
&lt;br /&gt;
;Substitute&lt;br /&gt;
&lt;br /&gt;
Substitute now supports both upper and lower case results.&lt;br /&gt;
&lt;br /&gt;
 00200 execute &amp;#039;config SUBSTITUTE &amp;quot;XXX YYY&amp;quot; &amp;quot;AbCd EFg&amp;quot;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Config]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Laura</name></author>
	</entry>
</feed>