Running an IBM PASE for i program with QP2TERM()

You use this IBM® i program to run an PASE for i program in an interactive shell environment.

Start an PASE for i interactive terminal session with the QP2TERM() program.
The following command writes the default Korn shell prompt (/QOpenSys/usr/bin/sh) to the screen:
call qp2term

From this prompt, you run an PASE for i program in a separate batch job. QP2TERM() uses the interactive job to display output and to accept input for files stdin, stdout, and stderr in the batch job.

The Korn shell is the default, but you can optionally specify the path name of any PASE for i program that you want to run, as well as any argument strings to pass to the program.

You can run any PASE for i program and any of the utilities from the interactive session that you start with QP2TERM(); stdout and stderr are written and scrolled in the terminal screen.