I want to display a panel from batch. I used IKJEFT01, the sysin is as 'ispstart panel(panel1)' but I'm always getting the error BDISPMAX exceeded then I set it to a higher value but it is consuming a lot of CPU..
Could any one help me on that and apart from that why a lot of CPU is utilized when I try displaying a panel in batch?
Joined: 01 Sep 2006 Posts: 2033 Location: Silicon Valley
I want to display a panel from batch.
There is not a way to display a panel in batch. In fact, you must avoid displaying panels in batch.
if SysVar('SysEnv') = "FORE" then
Address ISPEXEC "DISPLAY...."
You may want to write the same information that would have been displayed. Perhaps you can create a skeleton with similar formatting as the panel and use File Tailoring services to evaluate the variables.
You can display a panel in batch, but the panel logic either has to force the panel to end with something like .resp=end or you need to have the program do the appropriate CONTROL service to force the panel to get an END. The reason for bdispmax messages is that ISPF is just pressing the Enter key on your panel over and over so you need to find a way to end the display.
The reason to display panels in batch is usually to run logic in the panel. You won't see it at your terminal if that is what you are expecting.