The Start QSH (STRQSH) command, as known as QSH, starts the qsh shell interpreter.
If run in an interactive job, STRQSH starts an interactive shell session. If a shell session is not already active in the job, then:
A new shell session is started and a terminal window is displayed.
qsh runs the commands from the file /etc/profile if it exists.
qsh runs the commands from the file .profile in the user's home directory if it exists.
qsh runs the commands from the file specified by the expansion of the ENV variable if it exists.
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.
Using the Terminal Window
The terminal window has two parts:
an input line for entering commands, and
an output area that contains an echo of the commands you entered and any output generated by the commands.
The terminal window supports the following function keys:
Close the terminal window and end the qsh session.
Refresh the output area.
Print the output area to a spool file.
Roll output area up one page.
Roll output area down one page.
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.
F11 (Toggle line wrap)
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.
Disconnect from the qsh session. This key only closes the terminal window and does not end the qsh session. You can redisplay the disconnected qsh session by running STRQSH again.
Clear the output area.
Display top of output area.
Display bottom of output area.
Shift output area to the left.
Shift output area to the right.
F21 (CL command entry)
Display a command entry window where you can enter CL commands.
Also, you can use SysReq 2 to interrupt the currently running command.
Error messages for STRQSH
Error found with QSH session, reason code &1, errno &2.
No command is provided and an interactive session is started.
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 ('').
Note: The case is preserved when lowercase characters are specified.