Question

  Asked: Oct 16 2007   7:11 PM GMT
  Asked by: Wmfsr


Nested Selects in CLLE


NESTED, SELECT statement, CLLE

I am attempting to palce Nested Select Statements within a CLLE program and it will not accept the process.
ie:
SELECT
wHEN a=B THEN(DO)
PROCESS....
ENDDO
WHEN C=D THEN(DO)
PROCESS
eNDDO
WHEN (X=Y) tHEN(DO)

select
wHEN X1 = A tHEN(dO)
PROCESS
eNDDO
wHEN X1 = b THEN(DO)
PROCESS
eNDDO
eNDselect

wHEN X=z tHEN(DO)
ENDDO

ENDSELECT


The inside select errors * CPD0877 30 WHEN, OTHERWISE, or ENDSELECT command

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



Looks like you don't have an ENDDO for
WHEN (X=Y) tHEN(DO)

Thanks for the help, I missed the EndDo statement. Once I properly placed the enddo it worked like a charm
wmfsr
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Database and AS/400.

Looking for relevant Database Whitepapers? Visit the SearchOracle.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register