Chapter Contents

Previous

Next
Extended Table: _endpage

Extended Table: _endpage



Signals the end of a page in a dynamic table and stops the processing of the GETROW section


Syntax
Details
Example

Syntax

CALL NOTIFY (extended-table-name, '_endpage');


Details

_endpage indicates that the desired number of rows has been displayed. This method is used in the GETROW section.


Example

This example reads text from an external file into a table named TABLE. If the read fails, it signifies the end of the table. If the first character of the text is the hexadecimal character 'C' (form feed), it signifies a new page. This code is in the GETROW section. Additional code is needed to position the file pointer based on _currow.

GETROW:
   if (fread(fid)^=0) then call notify
      ('table','_endtable_');
   else
      do;
         fget(fid,c,1);
         if (c='0C'x) then
            call notify('table',
                       '_endpage_');
      end;
return;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.