SIREDIT parameter: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
(Added complete text from command reference)
Line 10: Line 10:
<dt>Introduced
<dt>Introduced
<dd>Before [[Sirius Mods]] 6.7
<dd>Before [[Sirius Mods]] 6.7
</dl>
This is a bitmask parameter that controls various enhancements to the Model 204 fullscreen
editor. The meaning of the bits are:
<dl>
<dt>X'01'
<dd>Switch to *LOWER mode upon entry to the editor, and revert to prior setting
upon exit. This allows command mode to work in *UPPER mode so that
commands are automatically uppercased, while allowing the editor to work in
mixed-case mode.
Since most Model 204 commands take entirely uppercase input, *UPPER mode
is almost always preferable in command mode. On the other hand, most
modern User Language programs use mixed case, so *LOWER mode is
preferable inside the editor. The SIREDIT X'01' bit allows one to get the best of
both worlds with no effort.
This bit has no effect if the user is already in *LOWER mode on entry to the
editor.
<dt>X'02'
<dd> Change the LINEND character for the current procedure to carriage return
(X'0D'). This allows procedures to include semicolons as data, and it also
makes it easier to edit a procedure that has been uploaded from an HTML
generator.
<dt>X'04'
<dd>Always force the current 3270 Mod 2 behavior (24 lines by eighty characters),
even if the editor is invoked by a thread using a Mod 5 session. This bit takes
precedence over the following bit.
<dt>X'08'
<dd>Allow Mod 5 sessions in DBCS environments. Ordinarily the widescreen (Mod
5) support is disabled under DBCS environments. When this bit is set, even
DBCS sessions are eligible for widescreen support.
<dt>X'10'
<dd>Provide case-insensitive locate in non-DBCS environments. Thus, the editor
command will locate both of the following lines, regardless of the setting of *LOWER/*UPPER or the SIREDIT X'01' bit:
  This is sometimes hard to find due to mixed
  case, while “this is” is all lower case.
<dt>X'20'
<dd>Provide case-insensitive search strings for the replace command, while still retaining the case as entered on the replacement string, assuming that either *LOWER is in effect or the X'01' bit of SIREDIT is set. Under these conditions, and using the text from the previous example, the command:
  r/this is/This Is/* all
will change occurrences on both lines, resulting in:
  This Is sometimes hard to find due to mixed
  case, while “This Is” is all lower case.
In addition to the SIREDIT parameter, the Sirius Mods provide some additional fullscreen
editor commands.
</dl>
</dl>
[[Category:User Parameters]]
[[Category:User Parameters]]
[[Category:Parameters]]
[[Category:Parameters]]

Revision as of 15:55, 5 October 2010

Default value
0
Parameter type
User
Where set
User resettable
Related products
All
Introduced
Before Sirius Mods 6.7

This is a bitmask parameter that controls various enhancements to the Model 204 fullscreen editor. The meaning of the bits are:

X'01'
Switch to *LOWER mode upon entry to the editor, and revert to prior setting upon exit. This allows command mode to work in *UPPER mode so that commands are automatically uppercased, while allowing the editor to work in mixed-case mode. Since most Model 204 commands take entirely uppercase input, *UPPER mode is almost always preferable in command mode. On the other hand, most modern User Language programs use mixed case, so *LOWER mode is preferable inside the editor. The SIREDIT X'01' bit allows one to get the best of both worlds with no effort. This bit has no effect if the user is already in *LOWER mode on entry to the editor.
X'02'
Change the LINEND character for the current procedure to carriage return (X'0D'). This allows procedures to include semicolons as data, and it also makes it easier to edit a procedure that has been uploaded from an HTML generator.
X'04'
Always force the current 3270 Mod 2 behavior (24 lines by eighty characters), even if the editor is invoked by a thread using a Mod 5 session. This bit takes precedence over the following bit.
X'08'
Allow Mod 5 sessions in DBCS environments. Ordinarily the widescreen (Mod 5) support is disabled under DBCS environments. When this bit is set, even DBCS sessions are eligible for widescreen support.
X'10'
Provide case-insensitive locate in non-DBCS environments. Thus, the editor command will locate both of the following lines, regardless of the setting of *LOWER/*UPPER or the SIREDIT X'01' bit: This is sometimes hard to find due to mixed case, while “this is” is all lower case.
X'20'
Provide case-insensitive search strings for the replace command, while still retaining the case as entered on the replacement string, assuming that either *LOWER is in effect or the X'01' bit of SIREDIT is set. Under these conditions, and using the text from the previous example, the command: r/this is/This Is/* all will change occurrences on both lines, resulting in: This Is sometimes hard to find due to mixed case, while “This Is” is all lower case. In addition to the SIREDIT parameter, the Sirius Mods provide some additional fullscreen editor commands.