Read Three datasets containing Multiple Time Series

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

                   SAS SAMPLE LIBRARY

       Name: quanex07.sas
Description: Example program from SAS/ETS User's Guide,
             The SASEQUAN Interface Engine
      Title: Read Three datasets containing Multiple Time Series
    Product: SAS/ETS Software
       Keys: Quandl data extraction
      Procs: SASEQUAN
      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
             ,QUANDL, to the path of your  writeable folder containing
             the quanex07.map file and QUANEX07.xml.
             To assign a fileref to the external file to be processed,
             use the following form of the libname statement:

           libname quan sasequan "%sysget(QUANDL)"
              FORMAT=XML
              OUTXML=quanex07
              AUTOMAP=replace
              MAPREF=MyMap
              XMLMAP="%sysget(QUANDL)quanex07.map"
              APIKEY='<your Quandl apikey>'
              IDLIST='<your list of Quandl codes>'
              START='<trim_start>'
              END='<trim-end>'
              COLLAPSE=annual
              ;
 ----------------------------------------------------------------*/

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

title 'Fuels Used for Generating Electricity, Gold, and S&P Composite Stock
       Time Series';
libname _all_ clear;
libname mylib "/sasusr/playpens/saskff/quan/doc/";

/* export QUANDL=/sasusr/playpens/saskff/quan/test/ */

libname mysup sasequan "/sasusr/playpens/saskff/quan/test/"
   apikey='XXXXXXXXXXXXXXXXXXXX'
   idlist='EIA/ELEC_PLANT_CONS_EG_BTU_57692_ALL_ALL_M,BUNDESBANK/BBK01_WT5511,YALE/SPCOMP'
   format=XML
   outXml=Tsupe
   automap=replace
   mapref=MyMap
   xmlmap="/sasusr/playpens/saskff/quan/test/Tsupe.map"
   start='2010-12-31'
   end='2016-12-31'
   collapse=annual
   ;

data mylib.Tsupe;
   set mysup.Tsupe;
   label Value_1 = "Electric Fuel Consumption";
   label Value_2= "Gold Price (USD)";
   label 'S&P Composite_3'n= "S&P Composite from SPCOMP";
   label Dividend_3= "Dividend (SPCOMP)";
   label Earnings_3= "Earnings (SPCOMP)";
   label CPI_3= "CPI (SPCOMP)";
   label 'Long Interest Rate_3'n= "Long Interest Rate (SPCOMP)";
   label 'Real Price_3'n= "Real Price (SPCOMP)";
   label 'Real Dividend_3'n= "Real Dividend (SPCOMP)";
   label 'Real Earnings_3'n= "Real Earnings (SPCOMP)";
   label 'Cyclically Adjusted PE Ratio_3'n= "Cyclically Adjusted PE Ratio (SPCOMP)";
run;

proc contents data=mylib.Tsupe; run;
proc print data=mylib.Tsupe label; run;