<?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 File I/O Functions in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106749#M29737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are a student keep me in mind when you are ready to search for a job.&amp;nbsp; I am almost always looking for to hire one or two SAS users at varying levels.&amp;nbsp; Currently I have two positions open for expert level positions and I just closed one for an entry level SAS user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2012 23:03:57 GMT</pubDate>
    <dc:creator>FriedEgg</dc:creator>
    <dc:date>2012-05-07T23:03:57Z</dc:date>
    <item>
      <title>SAS File I/O Functions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106746#M29734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am a little stuck on this problem for my homework.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;Use PROC FCMP to create a function named &lt;STRONG style="font-family: 'Courier New';"&gt;Nums&lt;/STRONG&gt; that takes one argument, which is the name of a SAS data set, and returns the number of logical observations in the data set. Refer to SAS OnlineDoc or the SAS Help facility to determine which SAS FILE I/O functions are required.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to look at the online doc for help on this, but I could not find a SAS File I/O function that would work for the program that I have currently:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc fcmp outlib=work.functions.Marketing;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function Nums(dataset) $40;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (open(dataset));&lt;/P&gt;&lt;P&gt;&amp;nbsp; endsub;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*part b;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; x=Nums('orion.Internet');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; put x=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please let me know what SAS File I/O I should use in order for this program to return correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 20:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106746#M29734</guid>
      <dc:creator>InfoAlisaA</dc:creator>
      <dc:date>2012-05-07T20:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS File I/O Functions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106747#M29735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc fcmp;&lt;/P&gt;&lt;P&gt; function num(dataset $);&lt;/P&gt;&lt;P&gt;&amp;nbsp; dsid=open(dataset);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; nobs=attrn(dsid,"nobs");&lt;/P&gt;&lt;P&gt;&amp;nbsp; rc=close(dsid);&lt;/P&gt;&lt;P&gt;&amp;nbsp; return(nobs);&lt;/P&gt;&lt;P&gt; endsub;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; test=num('sashelp.class');&lt;/P&gt;&lt;P&gt; put test;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 21:10:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106747#M29735</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-05-07T21:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS File I/O Functions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106748#M29736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks FriedEgg! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; This was very helpful!&lt;/P&gt;&lt;P&gt;Nice to get help from another Coloradan! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 22:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106748#M29736</guid>
      <dc:creator>InfoAlisaA</dc:creator>
      <dc:date>2012-05-07T22:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS File I/O Functions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106749#M29737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are a student keep me in mind when you are ready to search for a job.&amp;nbsp; I am almost always looking for to hire one or two SAS users at varying levels.&amp;nbsp; Currently I have two positions open for expert level positions and I just closed one for an entry level SAS user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 23:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106749#M29737</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-05-07T23:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS File I/O Functions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106750#M29738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi FE,&lt;/P&gt;&lt;P&gt;Does your company allow working remotely?&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 23:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106750#M29738</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-05-07T23:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS File I/O Functions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106751#M29739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not for entry level positions.&amp;nbsp; Typically we will only have programmers working remotely after they have already worked in one of our offices for an extended period of time.&amp;nbsp; Especially for beginner and intermediate level positions.&amp;nbsp; One of the positions I have at this time could work from our office in New York instead of Colorado, this would be for an expert level SAS statistical programmer and researcher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the positions I currently have available:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.i-behavior.com/Libraries/Job_Postings/Statistical_Analyst.sflb.ashx" style="color: #e79029; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; background-color: #ffffff;" target=" _blank"&gt;Statistical Analyst - Harrison, New York (remote possible, but unlikely)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.i-behavior.com/Libraries/Job_Postings/SrStatAnalystQA.sflb.ashx" style="color: #e79029; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; background-color: #ffffff;" target=" _blank"&gt;Sr. Statistical Analyst - Harrison, New York (remote is a possibility)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.i-behavior.com/Libraries/Job_Postings/POP.sflb.ashx" style="color: #e79029; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; background-color: #ffffff;" target=" _blank"&gt;Production Operations Programmer - Louisville, CO (This is a entry level position, remote to start is not an option)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.i-behavior.com/Libraries/Job_Postings/SAS_Programmer.sflb.ashx" style="color: #e79029; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;SAS Programmer - Louisville, CO (This is a intermediate to expert level position, and the one I am most interested in filling, remote to start is unlikely)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 23:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106751#M29739</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-05-07T23:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS File I/O Functions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106752#M29740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!!&amp;nbsp; -Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 23:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106752#M29740</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-05-07T23:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS File I/O Functions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106753#M29741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi FriedEgg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I will definitely keep you in mind! I am currently working on my Prob-Stat undergrad at Metro and I will be graduating Sprint 2013.&lt;/P&gt;&lt;P&gt; Do you have a LinkedIn page?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 01:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106753#M29741</guid>
      <dc:creator>InfoAlisaA</dc:creator>
      <dc:date>2012-05-08T01:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS File I/O Functions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106754#M29742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good code, but a slight change is in order.&amp;nbsp; The number of "logical" observations is a slightly different attribute:&amp;nbsp; nlobs instead of nobs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is rarely a difference.&amp;nbsp; NOBS is the total number of observations, which is unaffected by observations that have been interactively marked for deletion but not yet physically removed from the data set.&amp;nbsp; NLOBS is reduced by the number of observations that have been marked for deletion.&amp;nbsp; The L in NLOBS is for "Logical".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 13:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106754#M29742</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-05-08T13:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS File I/O Functions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106755#M29743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Astounding,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NLOBS is a good recommendation, it aids in situations where as you said, you have deleted records, and also cases where you use the file operation functions to apply where clauses to datasets and other things as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 15:13:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106755#M29743</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-05-08T15:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS File I/O Functions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106756#M29744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a link to my LinkedIn page on my profile for this site.&amp;nbsp; Just click on my name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 17:22:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-File-I-O-Functions/m-p/106756#M29744</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-05-08T17:22:15Z</dc:date>
    </item>
  </channel>
</rss>

