<?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: SAS code imported/exported data question in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574937#M12760</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277798"&gt;@Jonison&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to the TABLELIST be&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN that will be imported node input for following node. Since&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN; is created already, I tried delete and into, both methods dont work due to&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN is of 'read only'&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm really not understanding this. Please explain further.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2019 13:19:07 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-07-19T13:19:07Z</dc:date>
    <item>
      <title>SAS code imported/exported data question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574934#M12758</link>
      <description>&lt;P&gt;Hello, I have SAS code note:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;SELECT quote(MATERIAL) into: List separated by ',' FROM EMWS3.FILTER_TRAIN;&lt;BR /&gt;CREATE TABLE TABLELIST AS&lt;BR /&gt;SELECT T2.BAT_NUM,&lt;BR /&gt;T2.MAT_COD,&lt;BR /&gt;T2.UNRESTRICTED_QTY&lt;BR /&gt;FROM GDM_DIST.VW_MERPS_STOCKINV_INFO T2&lt;BR /&gt;WHERE T2.MAT_COD IN (&amp;amp;List);&lt;BR /&gt;SELECT * FROM TABLELIST;&lt;BR /&gt;/*INSERT INTO &amp;amp;EM_EXPORT_TRAIN&lt;BR /&gt;SELECT * FROM &amp;amp;TABLELIST;*/&lt;BR /&gt;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to the TABLELIST be&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN that will be imported node input for following node. Since&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN; is created already, I tried delete and into, both methods dont work due to&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN is of 'read only'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please suggest any method can put the results to&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN (exported data table of THIS SAS code Node).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 13:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574934#M12758</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2019-07-19T13:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code imported/exported data question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574937#M12760</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277798"&gt;@Jonison&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to the TABLELIST be&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN that will be imported node input for following node. Since&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN; is created already, I tried delete and into, both methods dont work due to&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN is of 'read only'&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm really not understanding this. Please explain further.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 13:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574937#M12760</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-19T13:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code imported/exported data question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574941#M12763</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277798"&gt;@Jonison&lt;/a&gt;Not sure if I understood exactly what you want but you may try the code below. I have divided one SQL step into two.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
	SELECT quote(MATERIAL) INTO: List separated by ',' FROM EMWS3.FILTER_TRAIN;
QUIT;

PROC SQL;
	CREATE TABLE TABLELIST AS SELECT T2.BAT_NUM, T2.MAT_COD, T2.UNRESTRICTED_QTY 
		FROM GDM_DIST.VW_MERPS_STOCKINV_INFO T2 WHERE T2.MAT_COD IN (&amp;amp;List);
	SELECT * FROM TABLELIST;
	/*INSERT INTO &amp;amp;EM_EXPORT_TRAIN
	SELECT * FROM &amp;amp;TABLELIST;*/
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am sorry if this is not what you wanted.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 13:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574941#M12763</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-07-19T13:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code imported/exported data question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574978#M12770</link>
      <description>&lt;P&gt;&amp;amp;EM_EXPORT_TRAIN is macro of export training dataset 'SAS Code Node'. To my understanding, in SAS miner, the export training dataset will inherit the whole import training dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This 'SAS Code Node' aims selecting a sub-group of import training dataset (saved as TABLELIST), and save this to&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN which can be used as the input for the following nodes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried use 'delete' function to remove the&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN table, it failed since it is read-only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and failed too with 'update' and/or 'into' functions (update&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN content) with the same reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just would like to know is there anyway to save TABLELIST content to&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 15:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574978#M12770</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2019-07-19T15:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code imported/exported data question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574981#M12771</link>
      <description>&lt;P&gt;Many thanks for your kind reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to save the TABLELIST in&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;amp;EM_EXPORT_TRAIN is macro of output training dataset of this node.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 15:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574981#M12771</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2019-07-19T15:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code imported/exported data question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574983#M12772</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277798"&gt;@Jonison&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;amp;EM_EXPORT_TRAIN is macro of export training dataset 'SAS Code Node'. To my understanding, in SAS miner, the export training dataset will inherit the whole import training dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This 'SAS Code Node' aims selecting a sub-group of import training dataset (saved as TABLELIST), and save this to&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN which can be used as the input for the following nodes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried use 'delete' function to remove the&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN table, it failed since it is read-only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and failed too with 'update' and/or 'into' functions (update&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN content) with the same reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just would like to know is there anyway to save TABLELIST content to&amp;nbsp;&amp;amp;EM_EXPORT_TRAIN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I know nothing about SAS minor.&amp;nbsp; But&amp;nbsp; EM_EXPORT_TRAIN is a macro variable. You are saying it contains the name of a dataset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want it to point to a different data set then then change the value of the macro variable instead of trying to change the dataset that it is currently pointing to.&amp;nbsp; So try something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let em_export_train=My_Other_Dataset;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Jul 2019 15:20:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574983#M12772</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-19T15:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code imported/exported data question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574984#M12773</link>
      <description>&lt;P&gt;Can you provide the&amp;nbsp;&lt;EM&gt;exact&lt;/EM&gt; ERROR message you are getting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the problem is really that the data set is write-only, then there's really nothing in SAS that can change this and you can't overwrite or modify this data set. You need to contact your IT department, or otherwise find a way to change the permissions on this data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note for clarity and proper use of terminology:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;amp;EM_EXPORT_TRAIN is macro of export training dataset 'SAS Code Node'&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;amp;EM_EXPORT_TRAIN is not a macro. It is a macro variable. Do not confuse these two things.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 15:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574984#M12773</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-19T15:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code imported/exported data question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574988#M12775</link>
      <description>Many thanks for your suggestions.&lt;BR /&gt;I added one code as you suggested.&lt;BR /&gt;========================&lt;BR /&gt;%let &amp;amp;EM_DATA_EXPORTSET=TABLELIST;&lt;BR /&gt;With below error message:&lt;BR /&gt;===&lt;BR /&gt;NOTE: There were 240 observations read from the data set EMWS3.FIMPORT_TRAIN.&lt;BR /&gt;7786 CREATE TABLE TABLELIST AS&lt;BR /&gt;7787 SELECT T2.BAT_NUM,&lt;BR /&gt;7788 T2.MAT_COD,&lt;BR /&gt;7789 T2.UNRESTRICTED_QTY&lt;BR /&gt;7790 FROM GDM_DIST.VW_MERPS_STOCKINV_INFO T2&lt;BR /&gt;7791 WHERE T2.MAT_COD IN (&amp;amp;List);&lt;BR /&gt;NOTE: Compressing data set WORK.TABLELIST increased size by 100.00 percent.&lt;BR /&gt;Compressed is 2 pages; un-compressed would require 1 pages.&lt;BR /&gt;NOTE: Table WORK.TABLELIST created, with 133 rows and 3 columns.&lt;BR /&gt;&lt;BR /&gt;7792&lt;BR /&gt;7793&lt;BR /&gt;7794 /*INSERT INTO &amp;amp;EM_EXPORT_TRAIN&lt;BR /&gt;7795 SELECT * FROM &amp;amp;TABLELIST;*/&lt;BR /&gt;7796&lt;BR /&gt;7797 QUIT;&lt;BR /&gt;NOTE: The PROCEDURE SQL printed page 4.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.19 seconds&lt;BR /&gt;cpu time 0.15 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ERROR: Expecting a variable name after %LET.&lt;BR /&gt;7798 %let &amp;amp;EM_DATA_EXPORTSET=TABLELIST;&lt;BR /&gt;7799&lt;BR /&gt;7800 /*; *"; *'; */;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jul 2019 15:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/574988#M12775</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2019-07-19T15:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code imported/exported data question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/575010#M12776</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;ERROR: Expecting a variable name after %LET.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7798 %let &amp;amp;EM_DATA_EXPORTSET=TABLELIST;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You told %LET to use the value of EM_DATE_EXPORTSET as the NAME of the macro variable you wanted to create.&lt;/P&gt;
&lt;P&gt;If you want to change the value of the macro variable EM_DATE_EXPORTSET then don't put the &amp;amp; in front of it in the %LET statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%let EM_DATA_EXPORTSET=TABLELIST;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 16:52:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/575010#M12776</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-19T16:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code imported/exported data question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/575328#M12835</link>
      <description>Many thanks for your kind reply.&lt;BR /&gt;I was thinking to use into: to put the queried data into the table directly.&lt;BR /&gt;PROC SQL;&lt;BR /&gt;SELECT quote(MATERIAL) into: List separated by ',' FROM EMWS3.FILTER_TRAIN;&lt;BR /&gt;/*CREATE &amp;amp;EM_EXPORT_TRAIN AS*/&lt;BR /&gt;SELECT BAT_NUM,&lt;BR /&gt;MAT_COD,&lt;BR /&gt;UNRESTRICTED_QTY&lt;BR /&gt;INTO: EMWS3.EMCODE_TRAIN FROM GDM_DIST.VW_MERPS_STOCKINV_INFO&lt;BR /&gt;WHERE T2.MAT_COD IN (&amp;amp;List);&lt;BR /&gt;QUIT;&lt;BR /&gt;But system shows the error:&lt;BR /&gt;&lt;BR /&gt;7946 PROC SQL;&lt;BR /&gt;7947 SELECT quote(MATERIAL) into: List separated by ',' FROM EMWS3.FILTER_TRAIN;&lt;BR /&gt;NOTE: There were 240 observations read from the data set EMWS3.FIMPORT_DATA.&lt;BR /&gt;NOTE: View EMWS3.FILTER_TRAIN.VIEW used (Total process time):&lt;BR /&gt;real time 0.12 seconds&lt;BR /&gt;cpu time 0.11 seconds&lt;BR /&gt;&lt;BR /&gt;NOTE: There were 240 observations read from the data set EMWS3.FIMPORT_TRAIN.&lt;BR /&gt;7948 /*CREATE &amp;amp;EM_EXPORT_TRAIN AS*/&lt;BR /&gt;7949 SELECT BAT_NUM,&lt;BR /&gt;7950 MAT_COD,&lt;BR /&gt;7951 UNRESTRICTED_QTY&lt;BR /&gt;7952 INTO: EMWS3.EMCODE_TRAIN FROM GDM_DIST.VW_MERPS_STOCKINV_INFO&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ',', -, FROM, SEPARATED, THROUGH, THRU, TRIMMED.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;7953 WHERE T2.MAT_COD IN (&amp;amp;List);&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;7954 /*SELECT * FROM EM_EXPORT_TRAIN;*/&lt;BR /&gt;7955 /*%let EM_EXPORT_TRAIN=TABLELIST;*/&lt;BR /&gt;7956 /*%let &amp;amp;EMWS3.EMCODE_TRAIN=TABLELIST;*/&lt;BR /&gt;7957 /*INSERT INTO &amp;amp;EM_EXPORT_TRAIN&lt;BR /&gt;7958 SELECT * FROM &amp;amp;TABLELIST;*/&lt;BR /&gt;7959&lt;BR /&gt;7960 QUIT;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: The PROCEDURE SQL printed page 11.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.13 seconds&lt;BR /&gt;cpu time 0.13 seconds&lt;BR /&gt;&lt;BR /&gt;7961&lt;BR /&gt;7962 /*; *"; *'; */;&lt;BR /&gt;&lt;BR /&gt;Would you please suggest on this? Many thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jul 2019 11:17:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-code-imported-exported-data-question/m-p/575328#M12835</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2019-07-22T11:17:37Z</dc:date>
    </item>
  </channel>
</rss>

