Retrieve the Current Conditions for a Date Range,

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

                   SAS SAMPLE LIBRARY

       Name: rainex05.sas
Description: Example program from SAS/ETS User's Guide,
             The SASERAIN Interface Engine
      Title: Retrieve the Current Conditions for a Date Range,
             London and 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
             ,World Weather Online, to the path of your writeable folder
             containing the RAINEX05.MAP file and RAINEX05.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)"
              QUERY='London,United Kingdom;Paris,France'
              DATE='2017-05-01'
              ENDDATE='2017-05-02'
              CC=ONLYCC
              FORMAT=XML
              OUTXML=rainex05
              AUTOMAP=replace
              MAPREF=MyMap
              XMLMAP="%sysget(RAIN_DATA)\rainex05.map"
              APIKEY='<your World Weather Online apikey>'
              TP=24
              ;
 ----------------------------------------------------------------*/


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

title 'Historical Weather for Date Range MAY 01, 2017 - MAY 02, 2017 for
   London and Paris';
libname _all_ clear;
libname mylib "/sasusr/playpens/saskff/rain/doc/";

libname myRain saserain "/sasusr/playpens/saskff/rain/test/"
   apikey='XXXXXXXXXXXXXXXXXXXX'
   query='London,United Kingdom;Paris,France'
   date='2017-05-01'
   enddate='2017-05-02'
   tp=24
   cc=onlycc
   format=XML
   outXml=rainex05
   automap=replace
   mapref=MyMap
   xmlmap="/sasusr/playpens/saskff/rain/test/rainex05.map"
   ;

data mylib.cc3day;
   set myRain.rainex05;
run;

proc contents data=mylib.cc3day; run;
proc print data=mylib.cc3day; run;