<?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: Need Help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771203#M244688</link>
    <description>FYI - please do not post the same question multiple times. I've merged your posts. Just as a heads up for homework questions many users prefer you show an attempt to solve the problem yourself before providing any solutions. &lt;BR /&gt;&lt;BR /&gt;Please show what you've tried so far and include specific question, right now this could very easily be interpreted as asking someone to do your homework for you since you've copy and pasted the questions from your assignment.</description>
    <pubDate>Wed, 29 Sep 2021 18:58:46 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-09-29T18:58:46Z</dc:date>
    <item>
      <title>Need Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771201#M244686</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Task&lt;/U&gt;&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the two datasets below (partial data shown), write SAS syntax that would answer the following question:&amp;nbsp; What proportion of close contacts were tested in the 5-10 day window of their quarantine period?&amp;nbsp; Include documentation throughout your code.&amp;nbsp; Comment on any assumptions you make or questions you would ask if you had the opportunity to iterate on this task.&amp;nbsp; Include syntax that would create output suitable to answer this question.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 18:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771201#M244686</guid>
      <dc:creator>adex0510</dc:creator>
      <dc:date>2021-09-29T18:49:01Z</dc:date>
    </item>
    <item>
      <title>help needed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771199#M244687</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Task&lt;/U&gt;&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the two datasets below (partial data shown), write SAS syntax that would answer the following question:&amp;nbsp; What proportion of close contacts were tested in the 5-10 day window of their quarantine period?&amp;nbsp; Include documentation throughout your code.&amp;nbsp; Comment on any assumptions you make or questions you would ask if you had the opportunity to iterate on this task.&amp;nbsp; Include syntax that would create output suitable to answer this question.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 18:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771199#M244687</guid>
      <dc:creator>adex0510</dc:creator>
      <dc:date>2021-09-29T18:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771203#M244688</link>
      <description>FYI - please do not post the same question multiple times. I've merged your posts. Just as a heads up for homework questions many users prefer you show an attempt to solve the problem yourself before providing any solutions. &lt;BR /&gt;&lt;BR /&gt;Please show what you've tried so far and include specific question, right now this could very easily be interpreted as asking someone to do your homework for you since you've copy and pasted the questions from your assignment.</description>
      <pubDate>Wed, 29 Sep 2021 18:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771203#M244688</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-29T18:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771237#M244696</link>
      <description>Here is what i arrived at&lt;BR /&gt;/* Generated Code (IMPORT) */&lt;BR /&gt;/* Source File: RI Data Set.xlsx */&lt;BR /&gt;/* Source Path: /home/u58810830 */&lt;BR /&gt;/* Code generated on: 9/29/21, 3:18 PM */&lt;BR /&gt;&lt;BR /&gt;%web_drop_table(WORK.IMPORT2);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FILENAME REFFILE '/home/u58810830/RI Data Set.xlsx';&lt;BR /&gt;&lt;BR /&gt;PROC IMPORT DATAFILE=REFFILE&lt;BR /&gt;DBMS=XLSX&lt;BR /&gt;OUT=WORK.IMPORT2;&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;PROC CONTENTS DATA=WORK.IMPORT2; RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%web_open_table(WORK.IMPORT2);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;68&lt;BR /&gt;69 /* Generated Code (IMPORT) */&lt;BR /&gt;70 /* Source File: RI Data Set.xlsx */&lt;BR /&gt;71 /* Source Path: /home/u58810830 */&lt;BR /&gt;72 /* Code generated on: 9/29/21, 3:18 PM */&lt;BR /&gt;73&lt;BR /&gt;74 %web_drop_table(WORK.IMPORT2);&lt;BR /&gt;NOTE: Table WORK.IMPORT2 has been dropped.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 192.31k&lt;BR /&gt;OS Memory 25504.00k&lt;BR /&gt;Timestamp 09/29/2021 08:27:47 PM&lt;BR /&gt;Step Count 98 Switch Count 2&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 15&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 10&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;75&lt;BR /&gt;76&lt;BR /&gt;77 FILENAME REFFILE '/home/u58810830/RI Data Set.xlsx';&lt;BR /&gt;78&lt;BR /&gt;79 PROC IMPORT DATAFILE=REFFILE&lt;BR /&gt;80 DBMS=XLSX&lt;BR /&gt;81 OUT=WORK.IMPORT2;&lt;BR /&gt;82 GETNAMES=YES;&lt;BR /&gt;83 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: One or more variables were converted because the data type is not supported by the V9 engine. For more details, run with&lt;BR /&gt;options MSGLEVEL=I.&lt;BR /&gt;NOTE: The import data set has 19 observations and 5 variables.&lt;BR /&gt;NOTE: WORK.IMPORT2 data set was successfully created.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;system cpu time 0.01 seconds&lt;BR /&gt;memory 2765.00k&lt;BR /&gt;OS Memory 28068.00k&lt;BR /&gt;Timestamp 09/29/2021 08:27:47 PM&lt;BR /&gt;Step Count 99 Switch Count 2&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 659&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 17&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 264&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;84&lt;BR /&gt;85 PROC CONTENTS DATA=WORK.IMPORT2; RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;user cpu time 0.04 seconds&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;memory 1716.87k&lt;BR /&gt;OS Memory 26536.00k&lt;BR /&gt;Timestamp 09/29/2021 08:27:47 PM&lt;BR /&gt;Step Count 100 Switch Count 0&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 122&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 0&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 16&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;86&lt;BR /&gt;87&lt;BR /&gt;88 %web_open_table(WORK.IMPORT2);&lt;BR /&gt;89&lt;BR /&gt;90 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;100&lt;BR /&gt;&lt;BR /&gt;User: u58810830&lt;BR /&gt;Statement Options&lt;BR /&gt;&lt;BR /&gt;The CONTENTS Procedure&lt;BR /&gt;Data Set Name WORK.IMPORT2 Observations 19&lt;BR /&gt;Member Type DATA Variables 5&lt;BR /&gt;Engine V9 Indexes 0&lt;BR /&gt;Created 09/29/2021 15:27:48 Observation Length 84&lt;BR /&gt;Last Modified 09/29/2021 15:27:48 Deleted Observations 0&lt;BR /&gt;Protection Compressed NO&lt;BR /&gt;Data Set Type Sorted NO&lt;BR /&gt;Label&lt;BR /&gt;Data Representation SOLARIS_X86_64, LINUX_X86_64, ALPHA_TRU64, LINUX_IA64&lt;BR /&gt;Encoding utf-8 Unicode (UTF-8)&lt;BR /&gt;Engine/Host Dependent Information&lt;BR /&gt;Data Set Page Size 131072&lt;BR /&gt;Number of Data Set Pages 1&lt;BR /&gt;First Data Page 1&lt;BR /&gt;Max Obs per Page 1557&lt;BR /&gt;Obs in First Data Page 19&lt;BR /&gt;Number of Data Set Repairs 0&lt;BR /&gt;Filename /saswork/SAS_work18D70001DC82_odaws02-usw2.oda.sas.com/SAS_workAF000001DC82_odaws02-usw2.oda.sas.com/import2.sas7bdat&lt;BR /&gt;Release Created 9.0401M6&lt;BR /&gt;Host Created Linux&lt;BR /&gt;Inode Number 536894750&lt;BR /&gt;Access Permission rw-r--r--&lt;BR /&gt;Owner Name u58810830&lt;BR /&gt;File Size 256KB&lt;BR /&gt;File Size (bytes) 262144&lt;BR /&gt;Alphabetic List of Variables and Attributes&lt;BR /&gt;# Variable Type Len Format Informat Label&lt;BR /&gt;2 B Char 24 $24. $24. B&lt;BR /&gt;3 C Char 14 $14. $14. C&lt;BR /&gt;1 Contacts Dataset: Char 16 $16. $16. Contacts Dataset:&lt;BR /&gt;4 D Char 14 $14. $14. D&lt;BR /&gt;5 E Char 16 $16. $16. E&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Sep 2021 20:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771237#M244696</guid>
      <dc:creator>adex0510</dc:creator>
      <dc:date>2021-09-29T20:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771246#M244702</link>
      <description>&lt;P&gt;Many users here don't want to download DOCX files because of virus potential, others have such things blocked by security software or organization policy. Also if you give us DOCX we have to create a SAS data set and due to the non-existent constraints the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data should be in form of a data step (good learning point right there). The show what you have attempted and describe why it didn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have a question involving time interval this also might be of use: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354&lt;/A&gt; has a PDF with much information about dates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 20:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771246#M244702</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-29T20:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771253#M244704</link>
      <description>This imports the data but I see no attempt to analyze the data or questions. You can start with PROC FREQ and SUMMARY tutorials perhaps?&lt;BR /&gt;&lt;BR /&gt;FREQ tutorial&lt;BR /&gt;&lt;A href="https://www.lexjansen.com/nesug/nesug07/ff/ff07.pdf" target="_blank"&gt;https://www.lexjansen.com/nesug/nesug07/ff/ff07.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;MEANS tutorial&lt;BR /&gt;&lt;A href="https://www.lexjansen.com/nesug/nesug08/ff/ff06.pdf" target="_blank"&gt;https://www.lexjansen.com/nesug/nesug08/ff/ff06.pdf&lt;/A&gt;</description>
      <pubDate>Wed, 29 Sep 2021 21:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771253#M244704</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-29T21:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771417#M244801</link>
      <description>&lt;P&gt;If it was me, I would make 2 new variables, day5 and day10. I would make them like this: day5 = exp_date + 5 and day10=exp_date + 10. Then you need to merge the datasets by person ID. Then you can make a boolean variable like this:&lt;/P&gt;
&lt;P&gt;flag = day5 &amp;lt;= test_date &amp;lt;= day10. This will assign flag to 1 if the conditions are true and 0 if false. If the combined dataset is not 1 row per person, then you will need to collapse it down to 1 row per person. Once you have a person-level dataset, then you can do proc freq on the flag variable to get the proportion.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 16:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/771417#M244801</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-09-30T16:33:13Z</dc:date>
    </item>
  </channel>
</rss>

