View previous topic :: View next topic
|
Author |
Message |
somdatta28
New User
Joined: 08 Feb 2008 Posts: 4 Location: India
|
|
|
|
Hi,
I was trying to create a panel which will print Hello World using below code. But while executing I got this error msg: "A command entered or contained in a CLIST has invalid syntax.". I am not able to find out what is wrong. Can anyone please help...
)ATTR DEFAULT(%+_)
% TYPE(TEXT) INTENS(HIGH)
+ TYPE(TEXT) INTENS(LOW)
_ TYPE(INPUT) INTENS(HIGH) CAPS(ON) JUST(LEFT)
)BODY
+
+ -------------------------------------
+ !!! HELLO WORLD !!!!!
+ -------------------------------------
+
+
)INIT
)PROC
)END |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
The panel definition looks fine. That message is coming from some code elsewhere. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
As terminology is so very important in the IT industry, I would like to point out that you do not create a panel using CLIST commands.
CLIST and ISPF are completely different animals. The panel is an ISPF panel which is merely displayed and used by the CLIST or REXX or whatever other invocation is used.
The error message is quite clear.
Quote: |
"A command entered or contained in a CLIST has invalid syntax." |
You have some problems in the CLIST rather than the ISPF panel. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
That error message occurs a lot when you've run a REXX exec and have added data into the data stack, and then exit the exec without removing that existing data from the stack. |
|
Back to top |
|
|
kacks7
New User
Joined: 22 Sep 2010 Posts: 33 Location: chennai(india)
|
|
|
|
hi somdatta28,
superk wrote: |
That error message occurs a lot when you've run a REXX exec and have added data into the data stack, and then exit the exec without removing that existing data from the stack. |
i just adding some more details with 'superk'.though the execution ends the datas left in the data stack will be treated as command by TSO. so it causing the error. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Another possibility is that you have line numbers where they should not be. |
|
Back to top |
|
|
|