In a program I display an ISPF table using below code (which is working fine :-) )...
display_coll: Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
                      Â
do forever                 Â
  zcmd = ''                Â
  ztdsels = 0               Â
  "ISPEXEC TBDISPL COLLDATA PANEL(SIAELM98)"
  prc = rc                 Â
  SELECT                  Â
   WHEN ztdsels > 0 THEN DO        Â
     "ADDPOP ROW(01) COLUMN(03)"    Â
     "DISPLAY PANEL(SIAELM97)"     Â
     prc = rc             Â
     "REMPOP ALL"            Â
     END                Â
   WHEN prc <> 0 then do         Â
     leave               Â
     end                Â
   OTHERWISE NOP             Â
  END                   Â
Â
I want to display contents of the table "COLLDATA" conditionally using the panel "SIAELM98" when table has more than 1 row...Else I want to display the data using panel "SIAELM97"
Could you please help ?