<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SasPy: trouble retrieving variable from macro using .symget() in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781573#M249073</link>
    <description>&lt;P&gt;Also,&amp;nbsp; I scanned the code in the macro you reference and I didn't see anything that would assign the&amp;nbsp;&lt;STRONG&gt;senspred&lt;/STRONG&gt; macro variable. No&amp;nbsp;&lt;STRONG&gt;call symput&lt;/STRONG&gt; or&amp;nbsp;&lt;STRONG&gt;let&lt;/STRONG&gt; statements that reference it. It seems to be a variable in some output data, but never stored in a macro variable. If that's the case, then the&amp;nbsp;&lt;STRONG&gt;symget&lt;/STRONG&gt; call wouldn't yield anything.&lt;/P&gt;</description>
    <pubDate>Sun, 21 Nov 2021 20:07:36 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2021-11-21T20:07:36Z</dc:date>
    <item>
      <title>SasPy: trouble retrieving variable from macro using .symget()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781517#M249063</link>
      <description>&lt;P&gt;Hi every one,&lt;/P&gt;&lt;P&gt;I'm quite new to SAS. I have a .csv file with data that needs to be processed using a pre-made SAS macro (&lt;A href="https://methods.cochrane.org/sites/methods.cochrane.org.sdt/files/public/uploads/METADAS_v1.3_txt.txt" target="_self"&gt;found here&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;I'm using SasPy from a Jupyter notebook with SAS OnDemand for Academics (SAS version 9.4).&lt;/P&gt;&lt;P&gt;I manage to run this macro directly in SAS Studio, with the desired results outputted. However, in a Jupyter notebook setup I do not manage to retrieve the calculated values in the macro that are stored in certain variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hereby the code:&lt;/P&gt;&lt;P&gt;Since the macro is quite lengthy, I first read the source .sas file ('metadas.sas') into a string ('macro'):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;macro = open('/Users/user/metadas.sas').read()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In order to run the macro (named '%metadas') on the input .csv file, I need to call it using this SAS code (also providing a path for the output .rtf and .log file):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;%metadas(&lt;BR /&gt;dtfile='/saswork/SAS_work559F000186B8_odaws01-euw1.oda.sas.com/SAS_work7C27000186B8_odaws01-euw1.oda.sas.com/test.csv',&lt;BR /&gt;rfile='/saswork/SAS_work559F000186B8_odaws01-euw1.oda.sas.com/SAS_work7C27000186B8_odaws01-euw1.oda.sas.com/test.rtf',&lt;BR /&gt;logfile='/saswork/SAS_work559F000186B8_odaws01-euw1.oda.sas.com/SAS_work7C27000186B8_odaws01-euw1.oda.sas.com/test.log');&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I concatenate the macro string and the command string into a single string, which I then submit to the SAS session:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;input_csv = '/saswork/SAS_work559F000186B8_odaws01-euw1.oda.sas.com/SAS_work7C27000186B8_odaws01-euw1.oda.sas.com/test.csv'&lt;BR /&gt;output_rtf = '/saswork/SAS_work559F000186B8_odaws01-euw1.oda.sas.com/SAS_work7C27000186B8_odaws01-euw1.oda.sas.com/test.rtf'&lt;BR /&gt;output_log = '/saswork/SAS_work559F000186B8_odaws01-euw1.oda.sas.com/SAS_work7C27000186B8_odaws01-euw1.oda.sas.com/test.log'&lt;BR /&gt;&lt;BR /&gt;code_subm = ("""{} \n %metadas(dtfile='{}',rfile='{}',logfile='{}');""").format(macro, input_csv, output_rtf, output_log)&lt;BR /&gt;sas.submit(code_subm)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the calculated variables within the macro that I need is, 'senspred'. However, when I try to access that variable:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;res = sas.symget('senspred')
print(res)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Python returns the variable name with ampersand, instead of the value of that variable:&lt;/P&gt;&lt;PRE&gt;&amp;amp;senspred&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the same result with all other macro variables that I try to access (including the inputted variables dtfile, rtfile, logfile).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used these sources as an example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/sassoftware/saspy-examples/blob/main/SAS_contrib/Using_SYMGET_and_SYMPUT.ipynb" target="_blank" rel="noopener"&gt;https://github.com/sassoftware/saspy-examples/blob/main/SAS_contrib/Using_SYMGET_and_SYMPUT.ipynb&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sassoftware.github.io/saspy/advanced-topics.html#moving-values-between-python-variables-and-sas-macro-variables" target="_blank" rel="noopener"&gt;https://sassoftware.github.io/saspy/advanced-topics.html#moving-values-between-python-variables-and-sas-macro-variables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I'm missing?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Nov 2021 12:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781517#M249063</guid>
      <dc:creator>restin</dc:creator>
      <dc:date>2021-11-21T12:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: SasPy: trouble retrieving variable from macro using .symget()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781521#M249065</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/407303"&gt;@restin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's a lot going on here but I see some opportunities to simplify, and that might help you get further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, if you are using the macro&amp;nbsp;&lt;STRONG&gt;as is&lt;/STRONG&gt;, then you can consider just reading it in directly from the website:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;filename metamac url "https://methods.cochrane.org/sites/methods.cochrane.org.sdt/files/public/uploads/METADAS_v1.3_txt.txt";
%include metamac;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could&amp;nbsp;&lt;STRONG&gt;sas.submit&lt;/STRONG&gt; that code from your notebook, and then you'd have the macro programs available in your session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next: hardcoding the work directory path is probably not the best idea as it will change every time you start a new session. If you don't mind storing this output in your SAS OnDemand account, allocate a new folder there and use it. Here's a simple trick (again, using sas.submit):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;options dlcreatedir;
libname results "&amp;amp;userdir./results";
libname results clear;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll then have a new folder in your account named "results", which you can always reference in your SAS code as "&amp;amp;userdir./results".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming your CSV file is "local" to your notebook session, you'll need to use&amp;nbsp;&lt;STRONG&gt;sas.upload&lt;/STRONG&gt; to get this up to SAS. You can place this in your userdir/results for convenience if you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With all of that in place, you'll be able to then use sas.submit to run your macro. Note that if you rely on the &amp;amp;userdir macro you'll need the doublequotes in your SAS code so the SAS macro processor will resolve the macro vars. (Single quotes would prevent this.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;%metadas(dtfile="%userdir/results/test.csv",
         rfile="%userdir/results/test.rtf",
         logfile="%userdir/results/test.log");&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Nov 2021 14:13:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781521#M249065</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-11-21T14:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: SasPy: trouble retrieving variable from macro using .symget()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781554#M249066</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;Thank you for your suggestions. This is the adapted Python code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;# Include METADAS.sas
sas.submit("""
filename metadas url "https://methods.cochrane.org/sites/methods.cochrane.org.sdt/files/public/uploads/METADAS_v1.3_txt.txt";
%include metadas;
""")

# Create results dir
sas.submit("""
options dlcreatedir;
libname results "&amp;amp;userdir./results";
libname results clear;
""")

# List directories in homefolder:
dl = sas.dirlist(sas.workpath)
for i in dl:
    print(i)

# Upload CSV file:
sas.upload("/Users/user/test.csv", str(sas.workpath + "results/test.csv"))

# Execute metadas macro:
sas.submit("""
%metadas(dtfile="%userdir/results/test.csv",
         rfile="%userdir/results/test.rtf",
         logfile="%userdir/results/test.log");
""")
# retrieve value of variable 'senspred'
res = sas.symget("senspred")
print(res)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Printing the directories in sas.workpath seems to show that the 'results' directory hasn't been created, so the rest of macro doesn't seem to work either:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;sastmp-000000008.sas7butl
sasgopt.sas7bcat
sasmac4.sas7bcat
sastmp-000000002.sas7bitm
regstry.sas7bitm
sasmac1.sas7bcat
sas.lck
&amp;amp;senspred&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What is going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a slightly more elaborate code, that does seem to be able to create the results folder and starts up the macro (using Python's format function and 'sas.workpath'):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;# Import METADAS.sas
sas.submit("""
filename metadas url "https://methods.cochrane.org/sites/methods.cochrane.org.sdt/files/public/uploads/METADAS_v1.3_txt.txt";
%include metadas;
""")

# Create results dir
sas.submit(("""
options dlcreatedir;
libname results "{}/results";
libname results clear;
""").format(str(sas.workpath)))

# List directories in homefolder:
dl = sas.dirlist(sas.workpath)
for i in dl:
    print(i)

# Upload CSV file:
sas.upload("/Users/user/test.csv", str(str(sas.workpath) + "results/test.csv"))

# Execute metadas macro:
output_dict = sas.submit(("""
options dlcreatedir;
%metadas(dtfile="{}results/test.csv",
         rfile="{}results/test.rtf",
         logfile="{}results/test.log");
""").format(sas.workpath, sas.workpath, sas.workpath))

res = sas.symget("senspred")
print(res)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Output:&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;_metadas_warnings.sas7bdat
_metadas_log.sas7bdat
templat.sas7bitm
sastmp-000000048.sas7bitm
_metadas_a_eigenvals_1.sas7bdat
_metadas_modfail.sas7bdat
_metadas_errors.sas7bdat
_metadas_a_hessian_1.sas7bdat
_metadas_ds1.sas7bdat
_metadas_meta.sas7bdat
test.csv
parms.sas7bcat
results/
sastmp-000000008.sas7butl
sasgopt.sas7bcat
sasmac4.sas7bcat
sastmp-000000002.sas7bitm
regstry.sas7bitm
sasmac1.sas7bcat
sas.lck

101                                                        The SAS System                           zondag 21 november 2021 15:49:00

21874      ods listing close;ods html5 (id=saspy_internal) file=_tomods1 options(bitmap_mode='inline') device=svg style=HTMLBlue;
21874    ! ods graphics on / outputfmt=png;
21875      
21876      
21877      options dlcreatedir;
21878      %metadas(dtfile="/saswork/SAS_workFCF800002BDA_odaws01-euw1.oda.sas.com/SAS_workC59300002BDA_odaws01-euw1.oda.sas.com/tes
21878    ! t.csv",
21879               rfile="/saswork/SAS_workFCF800002BDA_odaws01-euw1.oda.sas.com/SAS_workC59300002BDA_odaws01-euw1.oda.sas.com/resu
21879    ! lts/test.rtf",
21880               logfile="/saswork/SAS_workFCF800002BDA_odaws01-euw1.oda.sas.com/SAS_workC59300002BDA_odaws01-euw1.oda.sas.com/re
21880    ! sults/test.log");
*******************************************************
*                                                  *
*  META-ANALYSIS OF DIAGNOSTIC ACCURACY STUDIES  *
*                       *
*******************************************************
21923      
21924      
21925      
21926      ods html5 (id=saspy_internal) close;ods listing;
21927      

102                                                        The SAS System                           zondag 21 november 2021 15:49:00

21928      
&amp;amp;senspred&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here the macro seems to have create some intermediate files. I'm still not able to print the value of variable 'senspred' however.&lt;/P&gt;&lt;P&gt;Attached the created 'test.log' file. It mentions a syntax error, referring to the path of the 'test.csv' file, but I don't see what's wrong with it.&lt;/P&gt;&lt;P&gt;Any further help much appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 10:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781554#M249066</guid>
      <dc:creator>restin</dc:creator>
      <dc:date>2021-11-22T10:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: SasPy: trouble retrieving variable from macro using .symget()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781572#M249072</link>
      <description>&lt;P&gt;I might have led you down the wrong path with that &amp;amp;userdir macro var -- that's a SAS Studio thing and obviously you're not using that. Instead of that, try this for the path:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/home/&amp;amp;sysusername./results&lt;/PRE&gt;
&lt;P&gt;If that doesn't work, just sub in your actual SAS OnDemand user ID which will be a "u&lt;EM&gt;NNNNNNNN&lt;/EM&gt;" style token:&lt;/P&gt;
&lt;PRE&gt;/home/u12345678/results&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Nov 2021 19:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781572#M249072</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-11-21T19:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: SasPy: trouble retrieving variable from macro using .symget()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781573#M249073</link>
      <description>&lt;P&gt;Also,&amp;nbsp; I scanned the code in the macro you reference and I didn't see anything that would assign the&amp;nbsp;&lt;STRONG&gt;senspred&lt;/STRONG&gt; macro variable. No&amp;nbsp;&lt;STRONG&gt;call symput&lt;/STRONG&gt; or&amp;nbsp;&lt;STRONG&gt;let&lt;/STRONG&gt; statements that reference it. It seems to be a variable in some output data, but never stored in a macro variable. If that's the case, then the&amp;nbsp;&lt;STRONG&gt;symget&lt;/STRONG&gt; call wouldn't yield anything.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Nov 2021 20:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781573#M249073</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-11-21T20:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: SasPy: trouble retrieving variable from macro using .symget()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781660#M249100</link>
      <description>&lt;P&gt;Linux (UNIX) provides two shortcuts to your home directory: the tilde (~) or the environment variable $HOME, so you can write your statement as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname results "~/results";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname results "$HOME/results";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Nov 2021 06:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781660#M249100</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-22T06:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: SasPy: trouble retrieving variable from macro using .symget()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781688#M249117</link>
      <description>&lt;P&gt;I tried all four options with no success:&lt;/P&gt;&lt;PRE&gt;sas.submit("""
options dlcreatedir;
libname results "$HOME/results";
libname results clear;
""")

sas.submit("""
options dlcreatedir;
libname results "~/results";
libname results clear;
""")

sas.submit("""
options dlcreatedir;
libname results "/home/&amp;amp;sysusername./results";
libname results clear;
""")

sas.submit("""
options dlcreatedir;
libname results "/home/U59923716/results";
libname results clear;
""")&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I execute this Python code, no results folder shows up:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# List directories in homefolder:
dl = sas.dirlist(sas.workpath)
for i in dl:
    print(i)&lt;/PRE&gt;&lt;P&gt;Is sas.workpath the same as the home folder in which we created the results folder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But leaving this aside, as said, I could get the macro partially running by using sas.workpath to create a results folder, instead of the home folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Also,&amp;nbsp; I scanned the code in the macro you reference and I didn't see anything that would assign the&amp;nbsp;&lt;STRONG&gt;senspred&lt;/STRONG&gt; macro variable. No&amp;nbsp;&lt;STRONG&gt;call symput&lt;/STRONG&gt; or&amp;nbsp;&lt;STRONG&gt;let&lt;/STRONG&gt; statements that reference it. It seems to be a variable in some output data, but never stored in a macro variable. If that's the case, then the&amp;nbsp;&lt;STRONG&gt;symget&lt;/STRONG&gt; call wouldn't yield anything.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;OK, but even if I try to retrieve other macro variables that do get assigned a value, like 'tp', 'cinterval', I get the same results (ampersand added before the variable but not the value of the variable):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;res = sas.symget("cinterval")
Python output:
&amp;amp;cinterval

res = sas.symget("tp")
Python output:
&amp;amp;tp&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, I get the beneath error in the log file: anyone an idea on how to resolve this? I suppose this is the error because of which the macro doesn't make it to the end:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;******************************&lt;BR /&gt;CREATE WORD OUTPUT FOR RESULTS&lt;BR /&gt;******************************&lt;BR /&gt;5450 "^S={outputwidth=100% just=l font_size=3} Data:&lt;BR /&gt;5450 ! "/saswork/SAS_work7B650001B98F_odaws02-euw1.oda.sas.com/SAS_workCAA40001B98F_odaws02-euw1.oda.sas.com/test.csv"&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ANCHOR, AUTHOR, BASE, BODY, BOOKMARK, BOX_SIZING, CHARSET, CLOSE,&lt;BR /&gt;COLUMNS, CONTENTS, CSSSTYLE, DATAPANEL, DOM, DPI, ENCODING, FILE, FONTSCALE, GFOOTNOTE, GTITLE, HOST, IMAGE_DPI,&lt;BR /&gt;KEEPN, LSTPIPE, NEWFILE, NOCONTENTS, NOGFOOTNOTE, NOGTITLE, NOKEEPN, NOLSTPIPE, NOOUTLINE, NOTRKEEP, OPERATOR,&lt;BR /&gt;OUTLINE, PACKAGE, PATH, RECORD_SEPARATOR, SAS, SASDATE, SGE, STARTPAGE, STYLE, TEXT, TITLE, TRANTAB, TRKEEP.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 10:51:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SasPy-trouble-retrieving-variable-from-macro-using-symget/m-p/781688#M249117</guid>
      <dc:creator>restin</dc:creator>
      <dc:date>2021-11-22T10:51:05Z</dc:date>
    </item>
  </channel>
</rss>

