<?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: Please i am struggling figuring this out in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771023#M30926</link>
    <description>&lt;P&gt;And this is likely the best way to operationalize something like this...so is this homework or a real problem?&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings16/2240-2016.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/resources/papers/proceedings16/2240-2016.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this is the way you would most likely do it for a basic homework assignment. FYI - change the path (home/fkhurshed/Demo1) to one that works for you to run it all and see the files and output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data report;

set sashelp.class;

newfile = catt("/home/fkhurshed/Demo1/", name, ".txt");
file temp filevar=newfile;

put "This is a report for " Name;
put Name "is " age " and weighs: " Weight;
*double space;
put;
put;
put "End of Report for:" Name "," sex;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 28 Sep 2021 21:05:37 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-09-28T21:05:37Z</dc:date>
    <item>
      <title>Please i am struggling figuring this out</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771016#M30924</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="i am struggling to shift  zip month and amount please help" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64211i99EFC33BAF5E5680/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-09-28 160313.png" alt="i am struggling to shift  zip month and amount please help" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;i am struggling to shift  zip month and amount please help&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 20:14:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771016#M30924</guid>
      <dc:creator>Fifieee1</dc:creator>
      <dc:date>2021-09-28T20:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Please i am struggling figuring this out</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771022#M30925</link>
      <description>I'm guessing you're expected to use Data step &amp;amp; PUT statements? Or have you learned ODS Objects or ODSLISTS?&lt;BR /&gt;&lt;BR /&gt;There's several ways to do something like this, the most easiest and basic is data step and PUT statements.&lt;BR /&gt;&lt;BR /&gt;Going into ODS objects lets you add headers, formatting and control a lot of other options but is way more work.</description>
      <pubDate>Tue, 28 Sep 2021 20:28:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771022#M30925</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-28T20:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Please i am struggling figuring this out</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771023#M30926</link>
      <description>&lt;P&gt;And this is likely the best way to operationalize something like this...so is this homework or a real problem?&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings16/2240-2016.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/resources/papers/proceedings16/2240-2016.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this is the way you would most likely do it for a basic homework assignment. FYI - change the path (home/fkhurshed/Demo1) to one that works for you to run it all and see the files and output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data report;

set sashelp.class;

newfile = catt("/home/fkhurshed/Demo1/", name, ".txt");
file temp filevar=newfile;

put "This is a report for " Name;
put Name "is " age " and weighs: " Weight;
*double space;
put;
put;
put "End of Report for:" Name "," sex;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Sep 2021 21:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771023#M30926</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-28T21:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Please i am struggling figuring this out</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771025#M30927</link>
      <description>&lt;P&gt;Are you having trouble reading in the .DAT file?&lt;/P&gt;
&lt;P&gt;The code in your photograph does not look correct.&amp;nbsp; Do you really have a numeric variables named FIRST and LAST?&amp;nbsp; Also is NAME supposed by numeric the way it is first used in the INPUT statement?&amp;nbsp; Or is NAME character like it is used in the second place it is used n your INPUT statement?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 20:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771025#M30927</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-28T20:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Please i am struggling figuring this out</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771045#M30931</link>
      <description>I was in a long class sorry for the late reply&lt;BR /&gt;I was having issues with the column width.&lt;BR /&gt;But i figured it out thanks for the reply&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Sep 2021 23:03:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771045#M30931</guid>
      <dc:creator>Fifieee1</dc:creator>
      <dc:date>2021-09-28T23:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Please i am struggling figuring this out</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771048#M30933</link>
      <description>Yes i took the wrong screenshot and that was the wrong one. No the file just has too many spaces and the width. But i figured it out already thank you.</description>
      <pubDate>Tue, 28 Sep 2021 23:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771048#M30933</guid>
      <dc:creator>Fifieee1</dc:creator>
      <dc:date>2021-09-28T23:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Please i am struggling figuring this out</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771051#M30934</link>
      <description>&lt;P&gt;Please update your post as answered in that case.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 23:43:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Please-i-am-struggling-figuring-this-out/m-p/771051#M30934</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-09-28T23:43:19Z</dc:date>
    </item>
  </channel>
</rss>

