title: encountered the symbol "end" when expecting one of the following
body: <p>In the below procedure i did something wrong and im not getting where i went wrong getting "encountered the symbol "end" when expecting one of the following " Please help me and explain with wat is wrong in the procedure.</p>
  
  <pre><code>create or replace PROCEDURE CRangeproc(in_termid IN VARCHAR2,in_cardno IN VARCHAR2,p_ResultSet OUT SYS_REFCURSOR,outcount OUT NUMBER)
  AS 
  BEGIN 
  select count(*) into outcount from cardrangetable where PAN_LOW &lt;= in_cardno AND  PAN_HIGH &gt;=   in_cardno and terminal_id = in_termid;
  IF outCount = 1 then
  Open p_ResultSet FOR    
  select ISSUERTABLEID,ACQUIRERTABLEID,PANLENGTH from cardrangetable where PAN_LOW &lt;= in_cardno  AND  PAN_HIGH &gt;= in_cardno and terminal_id = intermid;
  CLOSE p_ResultSet;
  else
  end if; 
  End CRangeproc;
  </code></pre>
  
  <p>Thanks in advance</p>