I run this code at the end of some programs:
C3 =COMMENT/YESNO,PRINT REPORT?
IF/C3.INPUT=="YES"
PRINT/REPORT,TO_FILE=OFF,PROMPT,$
TO_PRINTER=ON,DRAFTMODE=OFF,$
PREVIOUS_RUNS=DELETE_INSTANCES
END_IF/
No problem except in subprograms. The subs are called from a main program running a loop allowing me to select which to run.
If I say no to the print request and run the sub again, it appends the report.
If I add the following it works fine. The files are saved to a dummy directory for later destruction.
ELSE_IF/C3.INPUT=="NO" PRINT/REPORT,TO_FILE=ON,OVERWRITE=C:\PCDMISv3_5r2\Inspec tionData\Dummy\sub_SS1427_MH-001_CriticalFeatures001.rtf,$
TO_PRINTER=OFF,DRAFTMODE=OFF,$
PREVIOUS_RUNS=DELETE_INSTANCES
END_ELSEIF/
So what do I do to eliminate this behavior?
I want to minimize the number of workarounds for me to remember.
I think my brain is getting full.
C3 =COMMENT/YESNO,PRINT REPORT?
IF/C3.INPUT=="YES"
PRINT/REPORT,TO_FILE=OFF,PROMPT,$
TO_PRINTER=ON,DRAFTMODE=OFF,$
PREVIOUS_RUNS=DELETE_INSTANCES
END_IF/
No problem except in subprograms. The subs are called from a main program running a loop allowing me to select which to run.
If I say no to the print request and run the sub again, it appends the report.
If I add the following it works fine. The files are saved to a dummy directory for later destruction.
ELSE_IF/C3.INPUT=="NO" PRINT/REPORT,TO_FILE=ON,OVERWRITE=C:\PCDMISv3_5r2\Inspec tionData\Dummy\sub_SS1427_MH-001_CriticalFeatures001.rtf,$
TO_PRINTER=OFF,DRAFTMODE=OFF,$
PREVIOUS_RUNS=DELETE_INSTANCES
END_ELSEIF/
So what do I do to eliminate this behavior?
I want to minimize the number of workarounds for me to remember.
I think my brain is getting full.
Comment