NOAA NX3MDA data for Date Range from June 8 to June 9, 2016

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

                   SAS SAMPLE LIBRARY

       Name: noaaex06.sas
Description: Example program from SAS/ETS User's Guide,
             The SASENOAA Interface Engine
      Title: NOAA NX3MDA data for Date Range from June 8 to June 9, 2016
    Product: SAS/ETS Software
       Keys: NOAA Severe Weather Data Inventory NX3MDA Data
      Procs: SASENOAA
      Notes: Read this before you run this sample.
             The sample data provided resides in the ets/sasmisc folder,
             and is only provided so that you can see how the data you
             download is supposed to look.
             The XML data that SASENOAA downloads
             should look the same as the sample data.

             You can define a system environment variable
             named NOAA_DATA that designates the path of your writeable
             folder where the maps and XML files from the NOAA SWDIWS
             are to be written.
             To assign a fileref to the external file to be processed,
             you could then use the NOAA_DATA environment variable in the
             following form of the libname statement:

           libname noaa sasenoaa "%sysget(NOAA_DATA)"
              NOAASET=nx3mda
              RANGE='20160608:20160609'
              OUTXML=c9nco
              AUTOMAP=replace
              MAPREF=MyMap
              XMLMAP="%sysget(NOAA_DATA)\c9nco.map"
              FORMAT=xml
              ;

             Alternatively, you can specify a path to an already existing
             physical folder such as "/sasusr/playpens/saskff/noaa/test/"
             as shown in the  code that follows.
 ----------------------------------------------------------------*/


options validvarname=any
   sslcalistloc="/SASSecurityCertificateFramework/1.1/cacerts/trustedcerts.pem";

title 'Digital Mesocyclone Detection Algorithm Data for June 8, 2016';
libname _all_ clear;
libname mylib "/sasusr/playpens/saskff/noaa/doc/";

libname noaa sasenoaa "/sasusr/playpens/saskff/noaa/test/"
   noaaset=nx3mda
   range='20160608:20160609'
   stat='countGroupBy:WSR_ID'  /* need this to create c9nco_S */
   outXml=c9nco
   automap=replace
   mapref=MyMap
   xmlmap="/sasusr/playpens/saskff/noaa/test/c9nco.map"
   format=xml
   ;

data mylib.myc9nco;
   set noaa.c9nco;
run;

proc contents data=mylib.myc9nco; run;
proc print data=mylib.myc9nco(obs=10); run;


libname mystats "/sasusr/playpens/saskff/noaa/test/";

proc contents data=mystats.c9nco_S; run;
proc print data=mystats.c9nco_S(obs=20); run;