I have a program that accepts a couple of paramarters at run time and populates a subfile. The subfile in then processed when a function key is pressed.
I now need the program to run in batch with the parameters passed to it. The subfile is central to the program processing and so rather than rewrite the program I tried
preventing the display of any screens and changing the program to accept parameters at the command line. This works well from the command line but if I submit the program in a batch job, it falls over immediatly because of course the display file s defined as a WORKSTN file.
Is there a way of getting round this? I need the program to run in batch with the subfile processing intact but I need to prevent the runtime error of a batchjob trying to open a workstn display file.
Dazed and confused
I now need the program to run in batch with the parameters passed to it. The subfile is central to the program processing and so rather than rewrite the program I tried
preventing the display of any screens and changing the program to accept parameters at the command line. This works well from the command line but if I submit the program in a batch job, it falls over immediatly because of course the display file s defined as a WORKSTN file.
Is there a way of getting round this? I need the program to run in batch with the subfile processing intact but I need to prevent the runtime error of a batchjob trying to open a workstn display file.
Dazed and confused