Try adding a 'NOP' after the first THEN 

Jon L. Veilleux 
[EMAIL PROTECTED] 
(860) 636-2683 


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of David Lover
Sent: Thursday, December 04, 2008 2:54 PM
To: IBM-MAIN@bama.ua.edu
Subject: Clist question

Having trouble with "IF then else" statement. 
the following statements works
IF &RECLEN GT 35 THEN -
IF &SUBSTR(25:31,&STR(&LIST)) EQ &STR(SPECIAL) THEN DO SET CONNECT=&STR(
CONNECT &NEWID GROUP(&GROUP) SP) END 

What i'm trying to do is add and "ELSE" statment. 
else
IF &SUBSTR(25:31,&STR(&LIST)) EQ &STR(operations) THEN DO SET
CONNECT=&STR( CONNECT &NEWID GROUP(&GROUP) op) 

It failed with S013. No Match IF . Help 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send
email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search
the archives at http://bama.ua.edu/archives/ibm-main.html
This e-mail may contain confidential or privileged information. If
you think you have received this e-mail in error, please advise the
sender by reply e-mail and then delete this e-mail immediately.
Thank you. Aetna   

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to