World Weather Online Data for Dubai, United Arab Emirates

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

                   SAS SAMPLE LIBRARY

       Name: rainex02.sas
Description: Example program from SAS/ETS User's Guide,
             The SASERAIN Interface Engine
      Title: World Weather Online Data for Dubai, United Arab Emirates
    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 RAINEX02.MAP file and RAINEX02.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=rainex02
              AUTOMAP=replace
              MAPREF=MyMap
              XMLMAP="%sysget(RAIN_DATA)rainex02.map"
              APIKEY='<your World Weather Online apikey>'
              QUERY=
              'London,United Kingdom;Paris,France;Dubai,United Arab Emirates'
              NUM_OF_DAYS=1
              TP=24
              ;
 ----------------------------------------------------------------*/


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

title 'Retrieve Weather Data for Three Cities';
libname _all_ clear;
libname mylib "/sasusr/playpens/saskff/rain/doc/";

libname rain saserain "/sasusr/playpens/saskff/rain/test/"
   apikey='XXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   query='London,United Kingdom;Paris,France;Dubai,United Arab Emirates'
   format=XML
   outXml=tricity
   automap=replace
   mapref=MyMap
   xmlmap="/sasusr/playpens/saskff/rain/test/tricity.map"
   num_of_days=1
   tp=24
   ;

data mylib.threecit;
   set rain.tricity;
run;

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