Specifying the Number of Obs in One Page of Data

/*----------------------------------------------------------------

                   SAS SAMPLE LIBRARY

       Name: wbgoex03.sas
Description: Example program from SAS/ETS User's Guide,
             The SASEWBGO Interface Engine
      Title: Specifying the Number of Obs in One Page of Data
             Using the Per\_Page= option
    Product: SAS/ETS Software
       Keys: WBGO data extraction
      Procs: SASEWBGO
      Notes: Read this before you run this sample.
             The sample data provided resides in the ets/sasmisc folder.
             If you are using automap=READONLY, copy the
             map of your incoming XML data to a writeable folder before
             using it. Then you can define a system environment variable,
             WBGO, to the path of your  writeable folder containing
             the GDP2ALL.MAP file and GDP2ALL.xml.
             To assign a fileref to the external file to be processed,
             use the following form of the libname statement:

           libname wbgo sasewbgo "%sysget(WBGO)"
              OUTXML=gdp2all
              AUTOMAP=replace
              MAPREF=MyMap
              XMLMAP="%sysget(WBGO)gdp2all.map"
              COUNTRYLIST='all'
              IDLIST='NY.GDP.PCAP.CD,NY.GDP.PCAP.KN,NY.GDP.PCAP.PP.KD'
              RANGE='2010:2016'
              PER\_PAGE=75
              PAGE=2
              FORMAT=xml
              ;
 ----------------------------------------------------------------*/

title 'Using the PER_PAGE= Option';
libname wbgo sasewbgo "<physical path name>"
   OUTXML=gdp2all
   AUTOMAP=replace
   MAPREF=MyMap
   XMLMAP="<fully qualified name of map file with .map file extension>"
   COUNTRYLIST='all'
   IDLIST='NY.GDP.PCAP.CD,NY.GDP.PCAP.KN,NY.GDP.PCAP.PP.KD'
   RANGE='2010:2016'
   PER_PAGE=75
   PAGE=2
   ;

data mygdp2all;
     set wbgo.gdp2all;
run;

proc contents data=mygdp2all; run;
proc print data=mygdp2all(drop=total_count); run;