misi01 Advanced
Joined: 02 Dec 2002 Posts: 629 Topics: 176 Location: Stockholm, Sweden
|
Posted: Wed Jun 27, 2018 5:10 am Post subject: Disable the command line in an ISPF panel |
|
|
I've written my own panel with a keylist to go with it. The idea is that this panel will be a "padded" (?) panel where the user can fill in a few values, press enter, and a job will be submitted for them. (Their logon procedure will take them straight to this panel and nothing else)
They are not expected to use SDSF or similar to check how the job is progressing. Instead, they'll be able to press a PF key that looks in the held queue to see if the job is finished.
To this end, the panel has no command field. Trouble is, as soon as I'de defined my keylist and pressed PF12 (one of the options), I received the message "Data truncated" (in reality)
Quote: |
ISPG059 Data truncated - Command input string larger than command input buffer for this panel.
|
After some mucking around, I realised the problem was because I didn't have a command field. Once I'd added that, the message disappeared.
Trouble is now, as soon as they have a command field, they can enter all sorts of commands (and get into all sorts of trouble since they have a minimal knowledge of ISPF).
Any ideas as to how to circumvent this problem ? _________________ Michael |
|
misi01 Advanced
Joined: 02 Dec 2002 Posts: 629 Topics: 176 Location: Stockholm, Sweden
|
Posted: Wed Jun 27, 2018 5:17 am Post subject: |
|
|
I could delete the previous topic since I found the answer after even more googling, but maybe this'll help someone else in the future. The following seems to work
Code: |
)BODY CMD()
+ DI for verksamheten
+
+Source (I/S/A) %===>_Z+
+
+Policy number %===>_FORSNR +
+
+Renewal date %===>_DATUM +
+
+Review results %===>_Z+
+
|
Note the use of the CMD() text on the )BODY line. _________________ Michael |
|