|
> Is there a way to run a program with a file described like *WORKSTN in >batch. Hi Jacqueline, Add the USROPN keyword to the F-Spec entry for the *WORKSTN file. This allows control of the opening of this file which can be conditioned to open only if the program is running in interactive mode. To determine run mode at run time use CL Command RTVJOBA to get the TYPE value (0= batch, 1=interactive). Then in your program, if interactive use the OPEN Op code to open the display file. In batch the file will remain closed and so avoid a runtime error. Also, condition out any reads or writes to the display file formats. However, if this means lots of coding then it might be better to create a batch version of the program and drop the display file altogether. regards, Keith
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.