World Weather Online Data for Paris

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

                   SAS SAMPLE LIBRARY

       Name: raings01.sas
Description: Example program from SAS/ETS User's Guide,
             The SASERAIN Interface Engine
      Title: World Weather Online Data for Paris
    Product: SAS/ETS Software
       Keys: World Weather Online data extraction
      Procs: SASERAIN
      Notes: Read this before you run this sample.
             The sample data provided resides in the ets/sasmisc folder.
             If you are using automap=READONLY, then you must copy the
             map of your incoming XML data to a writeable folder before
             using it. So, define a system environment variable
             ,RAIN_DATA, to the path of your  writeable folder containing
             the GSTART.MAP file and GSTART.xml.
             To assign a fileref to the external file to be processed,
             use the following form of the libname statement:

           libname rain saserain "%sysget(RAIN_DATA)"
              FORMAT=XML
              OUTXML=gstart
              AUTOMAP=replace
              MAPREF=MyMap
              XMLMAP="%sysget(RAIN_DATA)gstart.map"
              APIKEY='<your World Weather Online apikey>'
              QUERY='Paris,France'
              NUM_OF_DAYS=1
              ;
 ----------------------------------------------------------------*/

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

title 'World Weather Online Data for Paris';
LIBNAME myLib saserain "/sasusr/playpens/saskff/rain/test/"
   OUTXML=gstart
   AUTOMAP=replace
   MAPREF=MyMap
   XMLMAP="/sasusr/playpens/saskff/rain/test/gstart.map"
   APIKEY='XXXXXXXXXXXXXXXXXXXX'
   QUERY='Paris,France'
   FORMAT=xml
   NUM_OF_DAYS=1;

data howCool;
   set myLib.gstart ;
run;

proc contents data=howCool; run;
proc print data=howCool(obs=6); run;