178 lines
6.0 KiB
HTML
178 lines
6.0 KiB
HTML
|
|
||
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html>
|
||
|
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<title>Start QSH (QSH)</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</head>
|
||
|
<body bgcolor="white">
|
||
|
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<a name="QSH.Top_Of_Page"></a>
|
||
|
<h2>Start QSH (QSH)</h2>
|
||
|
<table width="100%">
|
||
|
<tr>
|
||
|
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
|
||
|
<b>Threadsafe: </b>No
|
||
|
</td>
|
||
|
<td valign="top" align="right">
|
||
|
<a href="#QSH.PARAMETERS.TABLE">Parameters</a><br>
|
||
|
<a href="#QSH.COMMAND.EXAMPLES">Examples</a><br>
|
||
|
<a href="#STRQSH.ERROR.MESSAGES">Error messages</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<div> <a name="STRQSH"></a>
|
||
|
<p>The Start QSH (STRQSH) command, as known as QSH, starts the <b>qsh</b> shell interpreter.
|
||
|
</p>
|
||
|
<p>If run in an interactive job, STRQSH starts an interactive shell session. If a shell session is not already active in the job, then:
|
||
|
</p>
|
||
|
<ol>
|
||
|
<li>A new shell session is started and a terminal window is displayed.
|
||
|
</li>
|
||
|
<li><b>qsh</b> runs the commands from the file <u> /etc/profile</u> if it exists.
|
||
|
</li>
|
||
|
<li><b>qsh</b> runs the commands from the file <u> .profile</u> in the user's home directory if it exists.
|
||
|
</li>
|
||
|
<li><b>qsh</b> runs the commands from the file specified by the expansion of the ENV variable if it exists.
|
||
|
</li>
|
||
|
</ol>
|
||
|
<p>If a shell session is already active in an interactive job, you are reconnected to the existing session. From the terminal window, you can enter shell commands and view output from the commands.
|
||
|
</p>
|
||
|
<p><b><u>Using the Terminal Window</u></b>
|
||
|
</p>
|
||
|
<p>The terminal window has two parts:
|
||
|
</p>
|
||
|
<ul>
|
||
|
<li>an input line for entering commands, and
|
||
|
</li>
|
||
|
<li>an output area that contains an echo of the commands you entered and any output generated by the commands.
|
||
|
</li>
|
||
|
</ul>
|
||
|
<p>The terminal window supports the following function keys:
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>F3 (Exit)</b></dt>
|
||
|
<dd>Close the terminal window and end the qsh session.
|
||
|
</dd>
|
||
|
<dt><b>F5 (Refresh)</b></dt>
|
||
|
<dd>Refresh the output area.
|
||
|
</dd>
|
||
|
<dt><b>F6 (Print)</b></dt>
|
||
|
<dd>Print the output area to a spool file.
|
||
|
</dd>
|
||
|
<dt><b>F7 (Up)</b></dt>
|
||
|
<dd>Roll output area up one page.
|
||
|
</dd>
|
||
|
<dt><b>F8 (Down)</b></dt>
|
||
|
<dd>Roll output area down one page.
|
||
|
</dd>
|
||
|
<dt><b>F9 (Retrieve)</b></dt>
|
||
|
<dd>Retrieve a previous command. You can press this key multiple times to retrieve any previous command. For example, to retrieve the second to last command you entered, press this key two times. You can also select a specific command to be run again by placing the cursor on that command and pressing this key. When the interactive job is running in a double-byte CCSID, this key is not available.
|
||
|
</dd>
|
||
|
<dt><b>F11 (Toggle line wrap)</b></dt>
|
||
|
<dd>Toggle the line wrap/truncate mode in the output area. In line wrap mode, lines longer than the width of the terminal window are wrapped to the next line. In truncate mode, the portion of a line beyond the width of the terminal window is not shown.
|
||
|
</dd>
|
||
|
<dt><b>F12 (Disconnect)</b></dt>
|
||
|
<dd>Disconnect from the <b>qsh</b> session. This key only closes the terminal window and does not end the <b>qsh</b> session. You can redisplay the disconnected <b>qsh</b> session by running STRQSH again.
|
||
|
</dd>
|
||
|
<dt><b>F13 (Clear)</b></dt>
|
||
|
<dd>Clear the output area.
|
||
|
</dd>
|
||
|
<dt><b>F17 (Top)</b></dt>
|
||
|
<dd>Display top of output area.
|
||
|
</dd>
|
||
|
<dt><b>F18 (Bottom)</b></dt>
|
||
|
<dd>Display bottom of output area.
|
||
|
</dd>
|
||
|
<dt><b>F19 (Left)</b></dt>
|
||
|
<dd>Shift output area to the left.
|
||
|
</dd>
|
||
|
<dt><b>F20 (Right)</b></dt>
|
||
|
<dd>Shift output area to the right.
|
||
|
</dd>
|
||
|
<dt><b>F21 (CL command entry)</b></dt>
|
||
|
<dd>Display a command entry window where you can enter CL commands.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p>Also, you can use SysReq 2 to interrupt the currently running command.
|
||
|
</p>
|
||
|
<h3>Error messages for STRQSH</h3>
|
||
|
<p><b><u>*ESCAPE Messages</u></b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>QSH0002</b></dt>
|
||
|
<dd>Error found with QSH session, reason code &1, errno &2.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QSH.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
|
||
|
<div>
|
||
|
<h3><a name="QSH.PARAMETERS.TABLE">Parameters</a></h3>
|
||
|
<table border="1" cellpadding="4" cellspacing="0">
|
||
|
<!-- col1="10" col2="15" col3="30" col4="10" -->
|
||
|
<tr>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#STRQSH.CMD"><b>CMD</b></a></td>
|
||
|
<td valign="top">Command</td>
|
||
|
<td valign="top"><i>Character value</i>, <b><u>*NONE</u></b></td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QSH.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div> <a name="STRQSH.CMD"></a>
|
||
|
<h3>Command (CMD)</h3>
|
||
|
<p>Specifies the shell command to be run.
|
||
|
</p>
|
||
|
<p>The possible values are:
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NONE:</u></b></dt>
|
||
|
<dd>No command is provided and an interactive session is started.
|
||
|
</dd>
|
||
|
<dt><b>command</b></dt>
|
||
|
<dd>A shell command to run. The command can be a maximum of 5000 bytes in length. If a blank or other special characters are used, the command must be enclosed in apostrophes ('). If an apostrophe is intended, two apostrophes must be used ('').
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p>
|
||
|
<b>Note: </b>The case is preserved when lowercase characters are specified.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QSH.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div>
|
||
|
<h3><a name="QSH.COMMAND.EXAMPLES">Examples</a></h3>None
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QSH.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="STRQSH.ERROR.MESSAGES">Error messages</a> </h3>
|
||
|
<p><b><u>*ESCAPE Messages</u></b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>QSH0002</b></dt>
|
||
|
<dd>Error found with QSH session, reason code &1, errno &2.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#QSH.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|