I/O redirection is supported in PGDBG. In versions of PGDBG prior to 5.2, there was a bug in which you had to have one or more spaces in between the file redirector and the filename. This may have caused some users to believe that I/O redirection was not supported in PGDBG. This bug has been fixed for PGDBG Version 5.2, although you still need at least one space in between the run command the the redirector.
To redirect output (stdout):
run > a.inp
To redirect input:
run < a.inp
To redirect stderr:
run >& a.log
To redirect I/O in the Graphical User Interface (GUI), add the file redirection portion of the run statement above in the Run Arguments dialog box. To open the Run Arguments dialog box, click on the Run Arguments item under the GUI’s Control menu. For example, to redirect output in the GUI, enter
>a.log
in the Run Arguments dialog box. to redirect input, enter
<a.inp
in the Run Arguments dialog box.
See the description of the run command, section 1.9.1.1 Process Control, in the latest version of the PGI Tools Guide (June 2004 printing) for more information.