<?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 Using Prompt in file title while exporting to excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-Prompt-in-file-title-while-exporting-to-excel/m-p/461083#M284776</link>
    <description>&lt;P&gt;I'm trying to export a SAS dataset&amp;nbsp;to&amp;nbsp;Excel 2013&amp;nbsp;file&amp;nbsp;using a program within a&amp;nbsp;process flow&amp;nbsp;in SAS EG 7.1. I wish to use two prompt in the name of the file e.g : &amp;amp;Prompt_4_SSC_4147_EMPL_AND_POS_SDMB_FINAL_&amp;amp;Prompt_3.xlsx. Is it possible to do?&lt;/P&gt;</description>
    <pubDate>Wed, 09 May 2018 15:30:04 GMT</pubDate>
    <dc:creator>JMart</dc:creator>
    <dc:date>2018-05-09T15:30:04Z</dc:date>
    <item>
      <title>Using Prompt in file title while exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Prompt-in-file-title-while-exporting-to-excel/m-p/461083#M284776</link>
      <description>&lt;P&gt;I'm trying to export a SAS dataset&amp;nbsp;to&amp;nbsp;Excel 2013&amp;nbsp;file&amp;nbsp;using a program within a&amp;nbsp;process flow&amp;nbsp;in SAS EG 7.1. I wish to use two prompt in the name of the file e.g : &amp;amp;Prompt_4_SSC_4147_EMPL_AND_POS_SDMB_FINAL_&amp;amp;Prompt_3.xlsx. Is it possible to do?&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 15:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Prompt-in-file-title-while-exporting-to-excel/m-p/461083#M284776</guid>
      <dc:creator>JMart</dc:creator>
      <dc:date>2018-05-09T15:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Prompt in file title while exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Prompt-in-file-title-while-exporting-to-excel/m-p/461134#M284777</link>
      <description>&lt;P&gt;Values from prompts are handed to SAS code in the form of macro variables, and can be used as such.&lt;/P&gt;
&lt;P&gt;Note that the names of macro variables used as parts of words need to be terminated with a dot:&lt;/P&gt;
&lt;PRE&gt;&amp;amp;Prompt_4._SSC_4147_EMPL_AND_POS_SDMB_FINAL_&amp;amp;Prompt_3..xlsx&lt;/PRE&gt;
&lt;P&gt;assuming that your prompts are named prompt_3 and prompt_4, respectively.&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 17:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Prompt-in-file-title-while-exporting-to-excel/m-p/461134#M284777</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-09T17:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using Prompt in file title while exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Prompt-in-file-title-while-exporting-to-excel/m-p/461157#M284778</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for your solution. However I still get an error message. Here's my code:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROC EXPORT DATA=WORK.FILTER_FOR_QUERY_FOR_SSC_EMPL_AN&lt;BR /&gt;FILE="filepath\&amp;amp;Tracker_4147._filename_&amp;amp;Date_Prod_Today."&lt;BR /&gt;DBMS=EXCEL REPLACE;&lt;BR /&gt;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I get the following error :&lt;BR /&gt;ERROR: Connect: Class not registered&lt;BR /&gt;&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do you know what cause this?&lt;BR /&gt;&lt;BR /&gt;Note that SAS/Access to PC files is licensed and I use SAS EG 7.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 May 2018 18:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Prompt-in-file-title-while-exporting-to-excel/m-p/461157#M284778</guid>
      <dc:creator>JMart</dc:creator>
      <dc:date>2018-05-09T18:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using Prompt in file title while exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Prompt-in-file-title-while-exporting-to-excel/m-p/461173#M284779</link>
      <description>&lt;P&gt;The ERROR happens in a libname statement, not in proc export code. Please post the log "as is" in a {i} window.&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 19:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Prompt-in-file-title-while-exporting-to-excel/m-p/461173#M284779</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-09T19:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using Prompt in file title while exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Prompt-in-file-title-while-exporting-to-excel/m-p/461652#M284780</link>
      <description>Here's the log that I get from the error:&lt;BR /&gt;1 ;*';*";*/;quit;run;&lt;BR /&gt;2 OPTIONS PAGENO=MIN;&lt;BR /&gt;3 %LET _CLIENTTASKLABEL='Program';&lt;BR /&gt;4 %LET _CLIENTPROCESSFLOWNAME='Process Flow';&lt;BR /&gt;5 %LET _CLIENTPROJECTPATH='R:\XXXX\REPORTS&lt;BR /&gt;5 ! COMPLETED\0000_ThursdayRecurring\ThursdayRecurring.egp';&lt;BR /&gt;6 %LET _CLIENTPROJECTPATHHOST='XXXXX';&lt;BR /&gt;7 %LET _CLIENTPROJECTNAME='ThursdayRecurring.egp';&lt;BR /&gt;8 %LET _SASPROGRAMFILE='';&lt;BR /&gt;9 %LET _SASPROGRAMFILEHOST='';&lt;BR /&gt;10&lt;BR /&gt;11 ODS _ALL_ CLOSE;&lt;BR /&gt;12 OPTIONS DEV=PNG;&lt;BR /&gt;13 GOPTIONS XPIXELS=0 YPIXELS=0;&lt;BR /&gt;14 FILENAME EGSR TEMP;&lt;BR /&gt;15 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR&lt;BR /&gt;16 STYLE=HtmlBlue&lt;BR /&gt;17 STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")&lt;BR /&gt;18 NOGTITLE&lt;BR /&gt;19 NOGFOOTNOTE&lt;BR /&gt;20 GPATH=&amp;amp;sasworklocation&lt;BR /&gt;21 ENCODING=UTF8&lt;BR /&gt;22 options(rolap="on")&lt;BR /&gt;23 ;&lt;BR /&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;24&lt;BR /&gt;25 GOPTIONS ACCESSIBLE;&lt;BR /&gt;26 PROC EXPORT DATA=WORK.FILTER_FOR_QUERY_FOR_SSC_EMPL_AN&lt;BR /&gt;27 FILE="R:\XXXX\REPORTS&lt;BR /&gt;27 ! COMPLETED\0000_ThursdayRecurring\Output Files\&amp;amp;Tracker_4147._SSC_4147_EMPL_AND_POS_SDMB_FINAL_&amp;amp;Date_Prod_Today."&lt;BR /&gt;WARNING: Apparent symbolic reference TRACKER_4147 not resolved.&lt;BR /&gt;WARNING: Apparent symbolic reference DATE_PROD_TODAY not resolved.&lt;BR /&gt;28 DBMS=EXCEL REPLACE;&lt;BR /&gt;ERROR: DBMS type EXCEL not valid for export.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;29 RUN;&lt;BR /&gt;30&lt;BR /&gt;31 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;32 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;33 %LET _CLIENTPROCESSFLOWNAME=;&lt;BR /&gt;34 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;35 %LET _CLIENTPROJECTPATHHOST=;&lt;BR /&gt;36 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;37 %LET _SASPROGRAMFILE=;&lt;BR /&gt;38 %LET _SASPROGRAMFILEHOST=;&lt;BR /&gt;39&lt;BR /&gt;40 ;*';*";*/;quit;run;&lt;BR /&gt;41 ODS _ALL_ CLOSE;&lt;BR /&gt;42&lt;BR /&gt;43&lt;BR /&gt;44 QUIT; RUN;</description>
      <pubDate>Fri, 11 May 2018 18:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Prompt-in-file-title-while-exporting-to-excel/m-p/461652#M284780</guid>
      <dc:creator>JMart</dc:creator>
      <dc:date>2018-05-11T18:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using Prompt in file title while exporting to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Prompt-in-file-title-while-exporting-to-excel/m-p/461709#M284781</link>
      <description>&lt;P&gt;You have two issues here:&lt;/P&gt;
&lt;P&gt;first, there is a problem with the resolution of macro variables. Either you omitted the necessary dot after the macro variable names, or necessary macro variables are not defined:&lt;/P&gt;
&lt;PRE&gt;WARNING: Apparent symbolic reference TRACKER_4147 not resolved.
WARNING: Apparent symbolic reference DATE_PROD_TODAY not resolved.&lt;/PRE&gt;
&lt;P&gt;second, SAS/ACCESS to PC Files is either not installed or not licensed:&lt;/P&gt;
&lt;PRE&gt;ERROR: DBMS type EXCEL not valid for export.&lt;/PRE&gt;
&lt;P&gt;Both of these issues need to be dealt with.&lt;/P&gt;
&lt;P&gt;If you write the data from Excel to a csv file, no license is needed and a simple data step can read the data.&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 21:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Prompt-in-file-title-while-exporting-to-excel/m-p/461709#M284781</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-11T21:15:02Z</dc:date>
    </item>
  </channel>
</rss>

