<?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 copy viya 4.x  studio .flw file from NFS to SAS content in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/901982#M356416</link>
    <description>&lt;P&gt;I've the same question.&amp;nbsp; I make use indeed of filesrc and i'am aware over de .csv-example documented by SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you copy with the same method&amp;nbsp; a .flw file to the sas content you can see that the file is copied to the sas content but the .flw-file wil not open as a flow in sas content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to copy a working sas studio flow which is saved on the filesystem copy via sas-code to the sas contents which should result in het working flow (on the sas content)&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2023 21:52:47 GMT</pubDate>
    <dc:creator>MAGDN</dc:creator>
    <dc:date>2023-11-07T21:52:47Z</dc:date>
    <item>
      <title>how to copy viya 4.x  studio .flw file from NFS to SAS content</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/901919#M356406</link>
      <description>&lt;P&gt;I want to know on what way it's possible to copy a .flw file from the filesystem to SAS Content folder in Viya.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to use a binary copy (fcopy lrec=n) but this results in het corrupt flow in de&amp;nbsp;SAS Content folder,&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 16:28:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/901919#M356406</guid>
      <dc:creator>MAGDN</dc:creator>
      <dc:date>2023-11-07T16:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy viya 4.x  studio .flw file from NFS to SAS content</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/901925#M356408</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure why FCOPY does not work.&lt;BR /&gt;You could try&amp;nbsp;&lt;STRONG&gt;fget&lt;/STRONG&gt; and &lt;STRONG&gt;fput&lt;/STRONG&gt; and &lt;STRONG&gt;fwrite&lt;/STRONG&gt; like done here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to use SAS DATA step to copy a file from anywhere? &lt;BR /&gt;By Chris Hemedinger on The SAS Dummy June 17, 2011&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2011/06/17/how-to-use-sas-data-step-to-copy-a-file-from-anywhere/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2011/06/17/how-to-use-sas-data-step-to-copy-a-file-from-anywhere/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just make sure to &lt;STRONG&gt;use&amp;nbsp;FILESRVC Access Method on&amp;nbsp;FILENAME Statement when referring to SAS Content folder&lt;/STRONG&gt;!&lt;/P&gt;
&lt;P&gt;Like here :&lt;/P&gt;
&lt;DIV class="xisDoc-refBlock"&gt;
&lt;DIV id="n1wcbz53aorvk6n11iqpkcuaban6" class="xisDoc-exampleBlock"&gt;
&lt;DIV class="xisDoc-example"&gt;
&lt;DIV id="n1wlv13beicmhsn187fgx2w9q015" class="xisDoc-codeBlock"&gt;
&lt;DIV class="xisDoc-codeBlockCode"&gt;
&lt;DIV class="xis-copyToClipboardBtn"&gt;
&lt;PRE class="xisDoc-code"&gt;&lt;CODE&gt;filename myfldr2 filesrvc folderpath='/Shared Data/Sales' filename='sales.csv';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 17:00:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/901925#M356408</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-07T17:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy viya 4.x  studio .flw file from NFS to SAS content</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/901982#M356416</link>
      <description>&lt;P&gt;I've the same question.&amp;nbsp; I make use indeed of filesrc and i'am aware over de .csv-example documented by SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you copy with the same method&amp;nbsp; a .flw file to the sas content you can see that the file is copied to the sas content but the .flw-file wil not open as a flow in sas content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to copy a working sas studio flow which is saved on the filesystem copy via sas-code to the sas contents which should result in het working flow (on the sas content)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 21:52:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/901982#M356416</guid>
      <dc:creator>MAGDN</dc:creator>
      <dc:date>2023-11-07T21:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy viya 4.x  studio .flw file from NFS to SAS content</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/901984#M356417</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/431645"&gt;@MAGDN&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When you copy with the same method&amp;nbsp; a .flw file to the sas content you can see that the file is copied to the sas content but the .flw-file wil not open as a flow in sas content.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;&lt;SPAN class="csC8F6D76"&gt;While you were opening .flw-file from SAS Studio Content folder ... is there any error/warning message that you can share?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="csC8F6D76"&gt;Can you try to open flow from SAS Job Execution portal?&lt;/SPAN&gt;&lt;SPAN class="csC8F6D76"&gt;&lt;BR /&gt;&lt;SPAN class="csCCA9035D"&gt;&lt;A href="https://&amp;lt;your_SAS_Environment&amp;gt;/SASJobExecution/" target="_blank"&gt;https://&amp;lt;your_SAS_Environment&amp;gt;/SASJobExecution/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN class="csC8F6D76"&gt;&lt;SPAN class="csCCA9035D"&gt;Koen&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 21:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/901984#M356417</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-07T21:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy viya 4.x  studio .flw file from NFS to SAS content</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/902027#M356438</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Koen,&lt;/P&gt;&lt;P&gt;Thank you for your questions. Hereby the warning i'am getting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="warning_association.JPG" style="width: 478px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89521i991A7DF970AAC9B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="warning_association.JPG" alt="warning_association.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 11:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/902027#M356438</guid>
      <dc:creator>MAGDN</dc:creator>
      <dc:date>2023-11-08T11:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy viya 4.x  studio .flw file from NFS to SAS content</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/960525#M374617</link>
      <description>&lt;P&gt;Not a timely response, but I too have looked into how to copy dataFlow and will comment on the results.&lt;/P&gt;
&lt;P&gt;I was able to save the flow as a file using PROC HTTP. Here is a sample code of it.&lt;/P&gt;
&lt;PRE&gt;/* Copy dataFlow to the directory */
%macro copyDataFlow(uri=, to=);
  %global rc;
  %local fref url n;
  
  %let rc=1;
  %let n=%sysfunc(monotonic());  
  %let fref=_LF%sysfunc(putn(&amp;amp;n, z5.));
  %let url=%sysfunc(getoption(SERVICESBASEURL))&amp;amp;uri;
    
  /* Assign file reference name. */
  filename &amp;amp;fref "&amp;amp;to" encoding='UTF-8';
  %if &amp;amp;sysfilrc^=0 &amp;amp; &amp;amp;sysfilrc^=1 %then %return;

  proc http method="GET" oauth_bearer=sas_services out=&amp;amp;fref url="&amp;amp;url";
  run;
  
  %if &amp;amp;SYS_PROCHTTP_STATUS_CODE=200 %then %do;
    %let rc=0;
  %end;
  
  filename &amp;amp;fref clear;
%mend;&lt;BR /&gt;&lt;BR /&gt;%copyDataFlow(uri=&lt;SPAN&gt;/dataFlows/dataFlows/a96a3d9d-61cd-4f18-bdca-4149251f3d5a, to=/tmp/sample.flw);&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Feb 2025 15:04:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/960525#M374617</guid>
      <dc:creator>working-dog</dc:creator>
      <dc:date>2025-02-28T15:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy viya 4.x  studio .flw file from NFS to SAS content</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/964945#M375740</link>
      <description>Thanks for answering. I want it the other way around. From disk to content.&lt;BR /&gt;&lt;BR /&gt;Your code does this from content to disk.</description>
      <pubDate>Wed, 23 Apr 2025 13:28:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-copy-viya-4-x-studio-flw-file-from-NFS-to-SAS-content/m-p/964945#M375740</guid>
      <dc:creator>MAGDN</dc:creator>
      <dc:date>2025-04-23T13:28:32Z</dc:date>
    </item>
  </channel>
</rss>

