Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid Syntax

Status
Not open for further replies.

LouPelagalli

Programmer
Sep 24, 2001
6
US
"A command entered or contained in a CLIST has invalid syntax."

That's all my Rexx tells me. It appears to run correctly.

The process is to
From command line, enter TSO rexxname
Display First Panel
Select Option
Display Second Panel
Don't enter anything, just press PF3
Receive message "A command entered or contained in a CLIST has invalid syntax."

I'm sorry I don't have any further information for you at this time.

Can someone tell me what I should be looking for to fix?

Thank you in advance for your help,

Lou
 
Lou,

You can get this error when the REXX program ends if the data stack is not empty. Verify this with a line of code something like this...


say 'There are 'QUEUED()' items left on the datastack.'


...just before the program exits.

The exec may have done all it needs to and appears to end normally yet you still get this error, which makes things very confusing!

When the exec ends, any items left on the data stack are treated as commands by TSO, and as such, it tries to execute them as TSO commands. Hence the 'command has invalid syntax' message.

This is a 'feature' of data stacks (one that I personally have never had the need to use!).

Hope this helps.

Cheers,
Dave.
mailto:dave.ring@barclays.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top