Dear Ms. Shtern, I am trying to import FRED data using your example and others, with no success. In running your program I get errors related to unrecognized names and library-related errors. Below is the log along with information about the software program. I have also x'ed out the API key.

Any help you can provide would be greatly appreciated. Thanks!

NOTE: Copyright (c) 2016 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software 9.4 (TS1M5)
Licensed to BD OF REGENTS OF UNIV SYST OF GEORGIA - SFA T&R, Site 70080521.
NOTE: This session is executing on the X64_10PRO platform.

NOTE: Updated analytical products:

SAS/STAT 14.3
SAS/ETS 14.3
SAS/IML 14.3
SAS/QC 14.3

NOTE: Additional host information:

X64_10PRO WIN 10.0.19041 Workstation

NOTE: SAS initialization used:
real time 1.08 seconds
cpu time 0.87 seconds

1 options validvarname=any
2 sslcalistloc="/opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/trustedcert
------------
13
2 ! s.pem";
ERROR 13-12: Unrecognized SAS option name SSLCALISTLOC.

3
4 libname _all_ clear;
5 libname mylib "/opt/sas/viya/config/data/cas/default/public";
NOTE: Library MYLIB does not exist.
5 ! /** Folder for final datasets
5 ! **/
6 /** Ingest FRED Data **/
7
8 libname fred sasefred "/opt/sas/viya/config/data/cas/default/public/fred"
9 OUTXML=UnemploymentClaims
10 AUTOMAP=replace
11 APIKEY='xxxxxxxxxxxxxxxxxxxxxxx' /** please request your API at this site
11 ! https://api.stlouisfed.org/api_key.html **/
12 IDLIST='ICSA,ICNSA,IC4WSA,CCSA,CCNSA'
13 START='2008-01-01'
14 END='2020-06-30'
15 freq='w'
16 ;
NOTE: The SASEFRED engine uses the FRED API but is not endorsed or certified by the Federal
Reserve Bank of St. Louis.
WARNING: By using the SASEFRED interface, you are agreeing to comply with the FRED terms of use:
https://api.stlouisfed.org/terms_of_use.html. You are also solely responsible for
obtaining copyright permission before downloading any copyright protected data series.
To obtain a list of the copyright protected data series, you can visit the following URL
(substitute your unique FRED api_key in the link):
https://api.stlouisfed.org/fred/series/search?search_text=copyright&api_key=your_api_key
ERROR: The directory (/opt/sas/viya/config/data/cas/default/public/fred) does not exist or cannot
be accessed.
ERROR: Libref FRED is not assigned.
ERROR: Error in the LIBNAME statement.
17 data mylib.UnemploymentClaims;
18 set fred.UnemploymentClaims;
ERROR: Libref FRED is not assigned.
19 run;

ERROR: Library MYLIB does not exist.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds

20 proc print data=mylib.UnemploymentClaims;
ERROR: Library MYLIB does not exist.
21 run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds