I have a simple question about a XEDIT  macro.

I have a macro that does a locate and select on some lines and then displays 
the selected lines.

My question, is there a way to find the number of lines that have been selected 
without counting them as I select them?
EXTRACT '/selectedlines/'          doesn't seem to exist..

snipit:
     do until rc ¬= 0                        /* loop until locate fails (rc > 
0)  */
       'command set select 1 1'        /* set selection level 1               */
        'command up 1'                     /* go back up one line               
*/
       'command locate /' machid '/'   /* look for the rest                    
*/
     end                                         /* end of loop                 
          */
 command set shadow off               /* turn shadow display off         */
 command set display 1 1              /* display selected lines           */

Thanks



Reply via email to