ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahz_5.4.0.1/commands.htm

165 lines
5.0 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<meta http-equiv="Content-Type" content=
"text/html; charset=utf-8">
<title>Using a Qshell interactive session</title>
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</HEAD>
<body bgcolor="#FFFFFF">
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h2>Using a Qshell interactive session</h2>
<p>The Start QSH (STRQSH) command, also known as QSH, is a CL
(control language) command that either starts a Qshell interactive
session or runs a Qshell command.</p>
<p>If running in an interactive job with no parameters, STRQSH
starts an interactive Qshell session. If a Qshell session is not
already active in the job, then the following events occur:</p>
<ol>
<li>A new Qshell session is started and a terminal window is
displayed.</li>
<li><strong>qsh</strong> runs the commands from the file
/etc/profile if it exists.</li>
<li><strong>qsh</strong> runs the commands from the file .profile
in the user's home directory if it exists.</li>
<li><strong>qsh</strong> runs the commands from the file specified
by the expansion of the <strong>ENV</strong> variable if it
exists.</li>
</ol>
<p>If a Qshell session is already active in an interactive job, you
are reconnected to the existing session.</p>
<p>From the terminal window, you can enter Qshell commands and view
output from the commands. The terminal window has two parts:</p>
<ul>
<li>an input line for entering commands</li>
<li>an output area that contains an echo of the commands you
entered and any output generated by the commands</li>
</ul>
<p>You can use these function keys:</p>
<table border cellpadding="3">
<tr>
<th>Function key</th>
<th>Description</th>
</tr>
<tr>
<td valign="top"><strong>F3 (Exit)</strong></td>
<td valign="top">Close the terminal window and end the Qshell session.</td>
</tr>
<tr>
<td valign="top"><strong>F5 (Refresh)</strong></td>
<td>Refresh the output area.</td>
</tr>
<tr>
<td valign="top"><strong>F6 (Print)</strong></td>
<td valign="top">Print the output area to a spool file.</td>
</tr>
<tr>
<td valign="top"><strong>F7 (Up)</strong></td>
<td valign="top">Roll output area up one page. If a number is on the command
line, the output area is rolled up by that number of lines.</td>
</tr>
<tr>
<td valign="top"><strong>F8 (Down)</strong></td>
<td valign="top">Roll output area down one page. If a number is on the command
line, the output area is rolled down by that number of lines.</td>
</tr>
<tr>
<td valign="top"><strong>F9 (Retrieve)</strong></td>
<td valign="top">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.</td>
</tr>
<tr>
<td valign="top"><strong>F11 (Toggle line wrap)</strong></td>
<td valign="top">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.</td>
</tr>
<tr>
<td valign="top"><strong>F12 (Disconnect)</strong></td>
<td valign="top">Disconnect from the Qshell session. This key only closes the
terminal window and does not end the Qshell session. You can
redisplay the disconnected Qshell session by running STRQSH
again.</td>
</tr>
<tr>
<td valign="top"><strong>F13 (Clear)</strong></td>
<td valign="top">Clear the output area.</td>
</tr>
<tr>
<td valign="top"><strong>F14 (Adjust command line length)</strong></td>
<td valign="top">Adjust the command line length to four lines. If a number is on
the command line, the command line length is adjusted to that
number of lines.</td>
</tr>
<tr>
<td valign="top"><strong>F17 (Top)</strong></td>
<td valign="top">Display top of output area.</td>
</tr>
<tr>
<td valign="top"><strong>F18 (Bottom)</strong></td>
<td valign="top">Display bottom of output area.</td>
</tr>
<tr>
<td valign="top"><strong>F19 (Left)</strong></td>
<td valign="top">Shift output area to the left. If a number is on the command
line, the output area is shifted by that number of columns.</td>
</tr>
<tr>
<td valign="top"><strong>F20 (Right)</strong></td>
<td valign="top">Shift output area to the right. If a number is on the command
line, the output area is shifted by that number of columns.</td>
</tr>
<tr>
<td valign="top"><strong>F21 (Command entry)</strong></td>
<td valign="top">Display a command entry window where you can enter CL
commands.</td>
</tr>
<tr>
<td valign="top"><strong>SysReq 2</strong></td>
<td valign="top">Interrupt the currently running command by sending the
SIGINT signal to all child processes.</td>
</tr>
</table>
</body>
</html>