<?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: How to save a zero observations data set (Template) from Work to a server. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-save-a-zero-observations-data-set-Template-from-Work-to-a/m-p/486683#M31514</link>
    <description>&lt;P&gt;Sorry, bit confused, your creating an empty dataset in SAS, then your create a copy of this somewhere else?&amp;nbsp; I am not sure why.&amp;nbsp; You could take a describe of dataset, then run that code on the destination, however if the destination is a database, then surely a better idea to use the table building tools on the database?&lt;/P&gt;
&lt;P&gt;The error you get seems to tell you then answer:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"The requested operation requires a current record."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Therefore&lt;SPAN&gt;&amp;nbsp;have one row, and then delete that row:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;proc sql;
  create table template.test_templ like sashelp.class;
  delete * from template.test_templ;
quit;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;You can execute as many queries as you like.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 14:25:11 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-08-14T14:25:11Z</dc:date>
    <item>
      <title>How to save a zero observations data set (Template) from Work to a server.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-save-a-zero-observations-data-set-Template-from-Work-to-a/m-p/486676#M31513</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the code bellow to copy a template (zero observation data set)&amp;nbsp;from Work to a server.&amp;nbsp; This operation works well but when I click on my template located on the server, I have this error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The opening of the data has failed.&lt;BR /&gt;The following error occurred.&lt;BR /&gt;BOF or EOF is equal to true.&lt;BR /&gt;The current record has been deleted.&lt;BR /&gt;The requested operation requires a current record.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;stop&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sashelp.class;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Template &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'\\...\Documents\My SAS Files\Template'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Template.Test_Templ &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;like&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.Test;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Any idea how to correct this problem?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:11:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-save-a-zero-observations-data-set-Template-from-Work-to-a/m-p/486676#M31513</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-08-14T14:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a zero observations data set (Template) from Work to a server.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-save-a-zero-observations-data-set-Template-from-Work-to-a/m-p/486683#M31514</link>
      <description>&lt;P&gt;Sorry, bit confused, your creating an empty dataset in SAS, then your create a copy of this somewhere else?&amp;nbsp; I am not sure why.&amp;nbsp; You could take a describe of dataset, then run that code on the destination, however if the destination is a database, then surely a better idea to use the table building tools on the database?&lt;/P&gt;
&lt;P&gt;The error you get seems to tell you then answer:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"The requested operation requires a current record."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Therefore&lt;SPAN&gt;&amp;nbsp;have one row, and then delete that row:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;proc sql;
  create table template.test_templ like sashelp.class;
  delete * from template.test_templ;
quit;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;You can execute as many queries as you like.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:25:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-save-a-zero-observations-data-set-Template-from-Work-to-a/m-p/486683#M31514</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-14T14:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a zero observations data set (Template) from Work to a server.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-save-a-zero-observations-data-set-Template-from-Work-to-a/m-p/486688#M31515</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have try your code and I still have the same error.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-save-a-zero-observations-data-set-Template-from-Work-to-a/m-p/486688#M31515</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-08-14T14:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a zero observations data set (Template) from Work to a server.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-save-a-zero-observations-data-set-Template-from-Work-to-a/m-p/486752#M31519</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have reported this issue to SAS.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 16:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-save-a-zero-observations-data-set-Template-from-Work-to-a/m-p/486752#M31519</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-08-14T16:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a zero observations data set (Template) from Work to a server.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-save-a-zero-observations-data-set-Template-from-Work-to-a/m-p/486819#M31520</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using the code bellow to copy a template (zero observation data set)&amp;nbsp;from Work to a server.&amp;nbsp; This operation works well but when I click on my template located on the server, I have this error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The opening of the data has failed.&lt;BR /&gt;The following error occurred.&lt;BR /&gt;BOF or EOF is equal to true.&lt;BR /&gt;The current record has been deleted.&lt;BR /&gt;The requested operation requires a current record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;stop&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sashelp.class;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Template &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'\\...\Documents\My SAS Files\Template'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Template.Test_Templ &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;like&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.Test;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Any idea how to correct this problem?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It sounds like there is a missing piece somewhere. Nnte of the code shown looks like it creates a data set "on a server".&lt;/P&gt;
&lt;P&gt;Do you click on the data set inside a SAS session running on the server? From another program like a data base file list? A simple file manager?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-save-a-zero-observations-data-set-Template-from-Work-to-a/m-p/486819#M31520</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-14T20:24:24Z</dc:date>
    </item>
  </channel>
</rss>

