View previous topic :: View next topic
|
Author |
Message |
bipinb84
New User
Joined: 08 Jul 2008 Posts: 2 Location: chennai
|
|
|
|
In the panel I've created, if I type ISPF commands in the input fields it gets executed. For example, if the input is file name, instead of file name if I enter the ISPF command 'START' it gets executed and creates a new screen, is there any way to stop this? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Errrm, START is the command to START a new ISPF session.
Methinks your EXEC is doing exactly as it has been told to do, START a new session. |
|
Back to top |
|
|
bipinb84
New User
Joined: 08 Jul 2008 Posts: 2 Location: chennai
|
|
|
|
In the panel we have the input field which expects file name as input as well as the command prompt .
1)If we enter the "START" command in the command prompt it should create a new screen.
2)If we give "START" in the input field it should give an error message to give valid file name,insted it creates a new screen. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
can You post the panel definition ( use the code tags ) ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
bipinb84 wrote: |
In the panel we have the input field which expects file name as input as well as the command prompt .
1)If we enter the "START" command in the command prompt it should create a new screen.
2)If we give "START" in the input field it should give an error message to give valid file name,insted it creates a new screen. |
Problem much clearer now after clarification.
As requested by Enrico, please post your panel defs. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
In case this is the reason, it's probably not a good idea to use the ZCMD Command Line as anything else other than the command line.
Unless, of course, you code CMD() on the )BODY statement. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
The first input area on the panel will be used as ZCMD area. Put a ZCMD line at the top of your panel as a place for commands, then your file name area will not be checked for commands. |
|
Back to top |
|
|
|