Specifying One Time Series ID with Multiple Vintage Dates

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

                   SAS SAMPLE LIBRARY

       Name: fredex05.sas
Description: Example program from SAS/ETS User's Guide,
             The SASEFRED Interface Engine
      Title: Specifying One Time Series ID with Multiple Vintage Dates
             Using OUTPUT=2 Option
    Product: SAS/ETS Software
       Keys: FRED data extraction
      Procs: SASEFRED
      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,
             FRED, to the path of your  writeable folder containing
             the FREDEX05.MAP file and FREDEX05.xml.
             To assign a fileref to the external file to be processed,
             use the following form of the libname statement:

           libname fred sasefred "%sysget(FRED)"
              OUTXML=fredex05
              AUTOMAP=replace
              MAPREF=MyMap
              XMLMAP="%sysget(FRED)fredex05.map"
              APIKEY='<your FRED apikey>'
              IDLIST='CBI'
              VINTAGE='1947-08-17,1966-08-11,1994-08-26'
              START='1942-01-01'
              END='1947-04-01'
              FREQ='q'
              OUTPUT=2
              UNITS='lin'
              FORMAT=xml
              ;
 ----------------------------------------------------------------*/

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

title 'Specifying One Series ID with Multiple Vintage Dates for OUTPUT=2 Option';
libname _all_ clear;

libname fred sasefred "%sysget(FRED)"
   OUTXML=fredex05
   AUTOMAP=replace
   MAPREF=MyMap
   XMLMAP="%sysget(FRED)fredex05.map"
   APIKEY='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   IDLIST='CBI'
   VINTAGE='1947-08-17,1966-08-11,1994-08-26'
   START='1942-01-01'
   END='1947-04-01'
   FREQ='q'
   OUTPUT=2
   UNITS='lin'
   FORMAT=xml;

data threeVinsCBI;
   set fred.fredex05;
run;

proc contents data=threeVinsCBI; run;
proc print data=threeVinsCBI; run;