Modifing my print spooler.
The second time I execute the PDISK command, in the same program, I get the message:
"Press Enter to continue or Esc to stop"
Any way around this?
Thanks
rich
Richard,
Are you PDISKing to a file that already exists? It could be asking to overwrite. Otherwise, try issuing "PDISK (S)". The (S) option should suppress any informational messages. You can also include (O) for overwrite. I don't know if (E) (error suppress) does anything with PDISK.
Is this from an RLIST call or INIT.VIEW code? There are issues with INIT.VIEW and VIEW.MODE and being called from a subroutine, not a main program, which also caused this when HEADING and FOOTING statements were issues.
World Leaders in all Things RevSoft
Thanks Matt. I've tried the options (OSE) no effect.
Thanks. The Heading/Footing is causing it. Do you know the reason?
The application is R/Basic.
Prg.1 is a job scheduler which reads a table and executes jobs.
Prg.2-n are the jobs. Each job calls a function that does a pdisk and sets the Heading/Footing to a company standard.Thanks again.
Richard,
Try seperating the multiple options with a space character. Like (O S E).
If you were to display a bit of the code surrounding the PDISK command, maybe we could offer more suggestions.
A sample PDISK command I use at the end of printing to a printer is as follows…
@HFACTIVE=FALSE
PRINTER OFF
EXECUTE 'SETPRINTER 1'
EXECUTE "PDISK PRN (O S)"
That's interesting. Using the 'N' option in the HEADING gets rid of the message, but the page counter is off by one for the second setting of HEADING. Simple fix: If @page ne 1 then @page=0
Thanks for the reply. It was the HEADING causing the problem. Using the 'N' option solved the problem.
Thanks again
That works, setting @HFACTIVE.
Thanks