Is there a way to redirect all output to a UNIT=COPY?
Posted: Mon Feb 08, 2016 3:25 pm
I have a lengthy script that runs in batch mode, and I'm trying to get RATS to save the text output (output only, not the output and the compiled code) in a separate text file. Some instructions, like DISPLAY or REPORT, support a UNIT=COPY option that lets me flexibly redirect output to this file. However, other instructions, like PRINT, FORECAST, etc. don't support this option. Is there a way around this?
COPY does provide for somewhat flexible output, but for printing series, I'm limited to FORMAT=FREE, among others, that doesn't replicate the convenient output of the PRINT instruction. If I use another format, I can't append the mix of text, series, and other output that I have to the file.
I can roll my own versions of FORECAST, PRINT, etc. that support this, but this is such a basic feature (redirecting output, and only output, to a text file), and rolling my own is significantly costly, that I'm hoping there's a simpler way to achieve this.
COPY does provide for somewhat flexible output, but for printing series, I'm limited to FORMAT=FREE, among others, that doesn't replicate the convenient output of the PRINT instruction. If I use another format, I can't append the mix of text, series, and other output that I have to the file.
I can roll my own versions of FORECAST, PRINT, etc. that support this, but this is such a basic feature (redirecting output, and only output, to a text file), and rolling my own is significantly costly, that I'm hoping there's a simpler way to achieve this.