Doesn't the ELSE also need a continuation (or an ELSE DO)? Ed Schlueter
-----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of David Lover Sent: Thursday, December 04, 2008 1: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 The information transmitted (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is intended only for the person(s) or entity/entities to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient(s) is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ---------------------------------------------------------------------- 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