<?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>New SAS User topics</title>
    <link>https://communities.sas.com/t5/New-SAS-User/bd-p/new-users</link>
    <description>New SAS User topics</description>
    <pubDate>Tue, 11 Aug 2020 20:51:40 GMT</pubDate>
    <dc:creator>new-users</dc:creator>
    <dc:date>2020-08-11T20:51:40Z</dc:date>
    <item>
      <title>About base exam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/About-base-exam/m-p/675991#M23659</link>
      <description>&lt;P&gt;I am planning to take Programming Associate/Base Programming Specialist. I am confused whether INFILE/ARRAY/INPUT statement included in the exam. I check the exam guide, there is nothing related it. But when I do the practice questions, there are some related it. Thanks so much.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 20:17:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/About-base-exam/m-p/675991#M23659</guid>
      <dc:creator>Jianan_luna</dc:creator>
      <dc:date>2020-08-11T20:17:04Z</dc:date>
    </item>
    <item>
      <title>SAS Sudio Sends Data to SAS?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Sudio-Sends-Data-to-SAS/m-p/675747#M23652</link>
      <description>&lt;P&gt;Hello all, I'm learning to use SAS Studio as it's the coding environment the training modules were taught in and I'm not the most computer literate person, so to make things easier on myself I've been using it alone. My coworker who requested that I take the training says that I cannot use the SAS Studio environment for our data as it takes the form of patient records and is therefore shared with SAS when I use Studio. Is this true? I'd like to continue using it if I can since I'm much less familiar with Enterprise or 9.4 which are also on this PC. Please advise.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 20:37:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Sudio-Sends-Data-to-SAS/m-p/675747#M23652</guid>
      <dc:creator>jmpalumbNCSU</dc:creator>
      <dc:date>2020-08-10T20:37:19Z</dc:date>
    </item>
    <item>
      <title>Question about means ins SAS 9.4</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-about-means-ins-SAS-9-4/m-p/675713#M23647</link>
      <description>&lt;P&gt;Hi! I'm tryin to calculate a mean LS for a lac (see the print screen) Not every cow have the same number of test in their lactation.&amp;nbsp; How can I code SAS for this: Sum all the LS ne . then divide it by the number of LS ne . And put the result in a new variable called LSmean.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annie_Fréchette_0-1597083852648.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48107i1C77A41F8760CCB9/image-size/medium?v=1.0&amp;amp;px=400" title="Annie_Fréchette_0-1597083852648.png" alt="Annie_Fréchette_0-1597083852648.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks you very much!!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 18:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-about-means-ins-SAS-9-4/m-p/675713#M23647</guid>
      <dc:creator>Annie_Fréchette</dc:creator>
      <dc:date>2020-08-10T18:25:48Z</dc:date>
    </item>
    <item>
      <title>Is my output correct</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-my-output-correct/m-p/675659#M23640</link>
      <description>&lt;P&gt;"Create a frequency table of current gender and sexual orientation for patients between the age of 18 - 50 years" was my instructions...I want to know if my output is correct. Please see attachment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 16:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-my-output-correct/m-p/675659#M23640</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-10T16:28:29Z</dc:date>
    </item>
    <item>
      <title>What does it mean if SAS says variable type is not on file?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675637#M23634</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;SAS keeps saying that the variable type is not on file....What does this mean? WHen I did a one way frequency table without the where statement it ran...But when I made this edit, it didn't.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Code:
proc freq data=WORK.SYPHILIS;
	tables genderB genderC sex_o RACE age / plots=(freqplot cumfreqplot);
	where Type in ("genderB", "genderC", "sex_o", "race") and 18&amp;lt;=age&amp;lt;=50;
run;

Log: 

1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 SYMBOLGEN:  Macro variable _SASWSTEMP_ resolves to /home/u49152646/.sasstudio/.images/db1b9e49-6774-45a2-9899-069be7ad3673
 SYMBOLGEN:  Some characters in the above value which were subject to macro quoting have been unquoted for printing.
 SYMBOLGEN:  Macro variable GRAPHINIT resolves to GOPTIONS RESET=ALL GSFNAME=_GSFNAME;
 72         
 73         /*
 74          *
 75          * Task code generated by SAS Studio 3.8
 76          *
 77          * Generated on '8/10/20, 8:32 AM'
 78          * Generated by 'u49152646'
 79          * Generated on server 'ODAWS03-USW2.ODA.SAS.COM'
 80          * Generated on SAS platform 'Linux LIN X64 3.10.0-1062.9.1.el7.x86_64'
 81          * Generated on SAS version '9.04.01M6P11072018'
 82          * Generated on browser 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
 82       ! Chrome/84.0.4147.105 Safari/537.36'
 83          * Generated on web client
 83       ! 'https://odamid-usw2.oda.sas.com/SASStudio/main?locale=en_US&amp;amp;zone=GMT-07%253A00&amp;amp;ticket=ST-27624-sinmcsizLgE19kH9QBkl-cas'
 84          *
 85          */
 86         
 87         proc freq data=WORK.SYPHILIS;
 88         tables genderB genderC sex_o RACE age / plots=(freqplot cumfreqplot);
 89         where Type in ("genderB", "genderC", "sex_o", "race") and 18&amp;lt;=age&amp;lt;=50;
 ERROR: Variable Type is not on file WORK.SYPHILIS.&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Aug 2020 15:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-does-it-mean-if-SAS-says-variable-type-is-not-on-file/m-p/675637#M23634</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-10T15:52:31Z</dc:date>
    </item>
    <item>
      <title>SAS DAte conversion to numeric</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-DAte-conversion-to-numeric/m-p/675636#M23633</link>
      <description>&lt;P&gt;Hi&amp;nbsp; all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling in some date conversion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way of conversion for this subtraction as Tenure_length_months results in a numeric number in the same format as Teradata&amp;nbsp; output. Despite this code works on SAS,&amp;nbsp; the final result for column Tenure_lenght_month does not manky any sense on my model with SAS results.&lt;/P&gt;&lt;P&gt;When I run on Teradata column&amp;nbsp;Tenure_length_months give me numbers like 125,31,48 which is absolutely fine however SAS gives me results like 6278800, 6252333 that could be right on a SAS approach but is not what I would like to see&amp;nbsp; as an output for this column.&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Considering today as 2020-04-31 I would have&amp;nbsp; a customer that is with us in 10 months&amp;nbsp;&lt;/P&gt;&lt;P&gt;Teradata results&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ten_date&lt;/TD&gt;&lt;TD&gt;Start_Month_End&lt;/TD&gt;&lt;TD&gt;tenure_mth&lt;/TD&gt;&lt;TD&gt;Tenure_length_months&lt;/TD&gt;&lt;TD&gt;Tenure_Months&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;02/07/2019&lt;/TD&gt;&lt;TD&gt;31/07/2019&lt;/TD&gt;&lt;TD&gt;201,907.00&lt;/TD&gt;&lt;TD&gt;10.98&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Considering today as 2020-04-31 I would have&amp;nbsp; a customer that is with us the same 10 months but SAs calculate in another way so gives me results like 627880.&lt;/P&gt;&lt;P&gt;SAS results&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ten_date&lt;/TD&gt;&lt;TD&gt;Start_Month_End&lt;/TD&gt;&lt;TD&gt;tenure_mth&lt;/TD&gt;&lt;TD&gt;Tenure_length_months&lt;/TD&gt;&lt;TD&gt;Tenure_Months&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;02JUL2019&amp;nbsp; 31JUL2019&amp;nbsp; &amp;nbsp; &amp;nbsp;201907&amp;nbsp; &amp;nbsp; &amp;nbsp; 627880.40&amp;nbsp; 627880&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I should write to see the same results as Teradata please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc delete
   lib= smm  data=payg_base_1;
run;

proc sql;                                                        
connect to teradata                                                     
(user=&amp;amp;td_usr. password=&amp;amp;td_pass. server = 'edwprod' database = 'insights_consumer' mode = teradata);                                                         
EXECUTE (
                                                          
CREATE SET TABLE sasmod_manager.payg_base_1 AS                                                       
(                                                         

select  a.*,

bb.Effective_From_Dt as ten_date ,
ADD_MONTHS(ten_date - EXTRACT(DAY FROM ten_date) + 1, 1) - 1 AS Start_Month_End,
cast(trim(extract (year from  ten_date ))  || trim(extract (month from  ten_date  ) (format '99')) as float) as tenure_mth,
&lt;STRONG&gt;((  '2020-04-31' - ten_date)/ 30.42) AS Tenure_length_months,

Cast(( Tenure_length_months ) AS INT)  AS Tenure_Months&lt;/STRONG&gt;

from

(  select       subscr_id,  
  subscr_num,
Tariff_Offering_Id,    
 Device_Type_Id   ,
sales_channel_id

/*from NUC_PL_USER_VIEW.SUBSCR_TRACK WHERE DATE    between effective_from_dt  and  effective_to_dt */
from NUC_PL_USER_VIEW.SUBSCR_TRACK WHERE 1200431  between effective_from_dt  and  effective_to_dt 
AND PREPYD_IND = 'Y'  
AND pandl_segment_id = 1 
AND mobile_broadband_ind = 'N' 
AND TELEMATIC_IND='N' 
AND (  Internal_BASE_IND=1 ) 
 )  a  

         left join
( select     subscr_id,    Effective_From_Dt    from     NUC_PL_USER_VIEW.SUBSCR_TRACK 
   WHERE    
   PREPYD_IND = 'Y'    AND pandl_segment_id = 1   AND mobile_broadband_ind = 'N'   AND TELEMATIC_IND='N'  AND Internal_BASE_IND=1    /* START DATE*/
  qualify rank () over (  partition by  subscr_id    order by  Effective_From_Dt asc )  =1     )  bb
   on a.Subscr_id=bb.Subscr_id 
 

) WITH DATA PRIMARY INDEX(subscr_id);)BY TERADATA;                      
quit; 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 15:51:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-DAte-conversion-to-numeric/m-p/675636#M23633</guid>
      <dc:creator>jorquec</dc:creator>
      <dc:date>2020-08-10T15:51:42Z</dc:date>
    </item>
    <item>
      <title>how do repeat the ID for every patient 11 times</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-do-repeat-the-ID-for-every-patient-11-times/m-p/675525#M23628</link>
      <description>&lt;P&gt;how do repeat the ID for every patient so that they have 11 instances they appear in the dataset. Some patients appear 3 4 7 or 11 times but I want everyone to be featured 11 times.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 01:32:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-do-repeat-the-ID-for-every-patient-11-times/m-p/675525#M23628</guid>
      <dc:creator>sasgyro</dc:creator>
      <dc:date>2020-08-10T01:32:29Z</dc:date>
    </item>
    <item>
      <title>Struggling with Missingness in a data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Struggling-with-Missingness-in-a-data-set/m-p/675450#M23621</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a logistic regression with four predictor variables, 1 outcome variable, and 6 covariates.&amp;nbsp; My N is around 2000 participants.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For one of my four predictor variables, there are around 1000 people missing the question.&amp;nbsp; The question asked was very sensitive and it is normal for people to skip it on surveys per other papers. The situation is similar for one of my covariates, where a question on a sensitive topic is also skipped by a substantial number of people.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now when I run it, my data set ends up cut in half.&amp;nbsp; My major professor will not let me do multiple imputations and wants me to do Full Information Maximum Likelihood to account for the missing data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any advice on if I can do this in SAS?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 09 Aug 2020 02:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Struggling-with-Missingness-in-a-data-set/m-p/675450#M23621</guid>
      <dc:creator>klongway</dc:creator>
      <dc:date>2020-08-09T02:16:50Z</dc:date>
    </item>
    <item>
      <title>several questions: options control, format control, ods procedure tables output data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/several-questions-options-control-format-control-ods-procedure/m-p/675435#M23618</link>
      <description>&lt;P&gt;this is a stored-up list.&lt;/P&gt;&lt;P&gt;1) Somewhere, i've seen that it is possible get rid of that centered output and have left justified output in the results viewer window. What was showed was the specific command that went in the syntax file. Stumbling around, i found a directory or file called options. I'm looking for a permanent fix. Do modify the options file? What option name and how done?&lt;/P&gt;&lt;P&gt;2) Today, i wanted to write out a text data file. In spss i'd say&lt;/P&gt;&lt;P&gt;write outfile='path string' var list (optional Fortran-type format specification). Nice and simple and highly controllable. I see in Cody's book how to export an excel file. Mplus, the receiving program, takes only text files. In SAS, how would i write out a text data file and, if desired, control variable formats and new lines. For example: recid y1-y50 (f4.0,2x,25f3.0/6x,25f3.0).&lt;/P&gt;&lt;P&gt;3) I want to export a set of frequency tables to a dataset. Based on Cody's book I used this&lt;/P&gt;&lt;P&gt;52 ods output bprawfreqs=OneWayFreq;&lt;BR /&gt;53 proc freq data=pbitems; tables dpb4-dpb16; run;&lt;/P&gt;&lt;P&gt;WARNING: Output 'bprawfreqs' was not created. Make sure that the output object name, label, or path is spelled correctly. Also, verify that the appropriate procedure options&lt;BR /&gt;are used to produce the requested output object. For example, verify that the&lt;BR /&gt;NOPRINT option is not used.&lt;/P&gt;&lt;P&gt;So. i believe the object name is correct because i did and ODS Trace command. I assume that the file (bprawfreqs is just a sas data set and it's location is controlled by the active lib statement (Correct or not?)&lt;/P&gt;&lt;P&gt;I read the documentation for proc freq and see that there is an "out' subcommand for a table statement. However, as i understand the documentation what is written out to the named dataset is only the last named frequency/crosstab table in the table subcommand. That's useless and it's hard to believe that is true.&lt;/P&gt;&lt;P&gt;4) I want&amp;nbsp; to come back to the output export problem. Recently i was running GEE models Working through the iterations of IV variable combinations, i had a list of 26 or 27 and I had to run each combination with two different DVs. The PIs requested that i summarize the results and what they wanted to see the coefficients and their significance values. (I want to say something to head off Proc Report: The coefficients and their significance are looked at and discussed, decisions are made, and the syntax and mht files could be deleted because they served their function).&amp;nbsp; In spss i could say OMS "analysis type" select if table="coefficients" ahead of the first GEE model and OMS End after the last one. In Cody i read that i can specify ods select &amp;gt;object&amp;lt; (persist); and that will do what i want. True?&lt;/P&gt;&lt;P&gt;That does it for now. Thanks.&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;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 20:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/several-questions-options-control-format-control-ods-procedure/m-p/675435#M23618</guid>
      <dc:creator>emaguin</dc:creator>
      <dc:date>2020-08-08T20:15:20Z</dc:date>
    </item>
    <item>
      <title>Creating a frequency table using age</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-frequency-table-using-age/m-p/675424#M23616</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a frequency table for gender and sexual orientation between the ages of 18-50. Where am I going wrong.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Code:
proc freq data=WORK.SYPHILIS;
	tables genderC genderB sex_o age RACE / plots=(freqplot cumfreqplot);
	where  Type in ("genderC", "genderB", "sex_o", age "18-50");
run;

Log:

87         proc freq data=WORK.SYPHILIS;
 88         tables genderC genderB sex_o age RACE / plots=(freqplot cumfreqplot);
 89         where  Type in ("genderC", "genderB", "sex_o", age "18-50");
                                                            ___
                                                            22
                                                            202
 ERROR: Syntax error while parsing WHERE clause.
 ERROR 22-322: Syntax error, expecting one of the following: a quoted string, ).  
 ERROR 202-322: The option or parameter is not recognized and will be ignored.
 90         run;
 &lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Aug 2020 18:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-frequency-table-using-age/m-p/675424#M23616</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-08T18:57:06Z</dc:date>
    </item>
    <item>
      <title>how to chain datasets with same name and variables structure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-chain-datasets-with-same-name-and-variables-structure/m-p/675209#M23609</link>
      <description>&lt;P&gt;Hello SAS experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of datasets with the same name and variables structure, and I want to add them all in a single one.&lt;/P&gt;&lt;P&gt;this doesn't work:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vzk_2020;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; i=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;to&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;8&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 face="Courier New" size="3" color="#0000ff"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vzk_2020_i;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&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;&lt;FONT face="Courier New" size="3"&gt;what's the correct way?&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;regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;PY&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 10:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-chain-datasets-with-same-name-and-variables-structure/m-p/675209#M23609</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2020-08-07T10:33:25Z</dc:date>
    </item>
    <item>
      <title>proc sql to copy records from one table to another</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-sql-to-copy-records-from-one-table-to-another/m-p/675205#M23606</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have one question. There are two datasets A and B, want to move/copy two rows from table B to A. Could someone help me which syntax I should use IN proc SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Navin&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 13:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-sql-to-copy-records-from-one-table-to-another/m-p/675205#M23606</guid>
      <dc:creator>Naveen1111</dc:creator>
      <dc:date>2020-08-08T13:07:21Z</dc:date>
    </item>
    <item>
      <title>How do I plot individual variables over time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-plot-individual-variables-over-time/m-p/675112#M23600</link>
      <description>&lt;P&gt;Hello All, I am attempting to plot the means of 8 individual variables in my dataset over time. I am using SAS university so proc gplot is not an option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is a way to take my proc means and plot it. So far nothing has worked. Here is the proc means I am running&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data=wide_merged_file_sans_pooled mean stddev median min max;&lt;BR /&gt;var gmcsf_fuvisit_f0 gmcsf_fuvisit_f1 gmcsf_fuvisit_f2 gmcsf_fuvisit_f3 gmcsf_fuvisit_f5&lt;BR /&gt;gmcsf_fuvisit_f6 gmcsf_fuvisit_f7 gmcsf_fuvisit_f8; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to take the results of this proc means and plot it with an x-axis of "fuvisit"(each variable is a follow up visit) and a y axis of "Mean" along with standard deviation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice is appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 19:19:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-plot-individual-variables-over-time/m-p/675112#M23600</guid>
      <dc:creator>cdunlea</dc:creator>
      <dc:date>2020-08-06T19:19:47Z</dc:date>
    </item>
    <item>
      <title>Saving files in SAS University Edition</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Saving-files-in-SAS-University-Edition/m-p/675109#M23598</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know it is a very basic question but my search did not yield satisfactory results so far.&lt;/P&gt;&lt;P&gt;I want to save data files permanently from my work library. Do I have to export them into myfolders or is there a more convenient way to do this in SAS University edition?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 19:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Saving-files-in-SAS-University-Edition/m-p/675109#M23598</guid>
      <dc:creator>Tim_sas_</dc:creator>
      <dc:date>2020-08-06T19:09:44Z</dc:date>
    </item>
    <item>
      <title>Remove decimal from variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-decimal-from-variable/m-p/675095#M23596</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do i remove a decimal from a variable?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example - go from:&lt;/P&gt;
&lt;P&gt;&lt;U&gt;ID&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;3.4&lt;/P&gt;
&lt;P&gt;66.5&lt;/P&gt;
&lt;P&gt;z4.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to:&lt;/P&gt;
&lt;P&gt;&lt;U&gt;ID&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;34&lt;/P&gt;
&lt;P&gt;665&lt;/P&gt;
&lt;P&gt;z41&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this possible using the cat or catx function?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 18:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-decimal-from-variable/m-p/675095#M23596</guid>
      <dc:creator>marleeakerson</dc:creator>
      <dc:date>2020-08-06T18:17:00Z</dc:date>
    </item>
    <item>
      <title>Creating three new variables in a panel ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-three-new-variables-in-a-panel/m-p/675085#M23594</link>
      <description>&lt;DIV class="forum-topic-flex-article"&gt;&lt;DIV class="forum-article"&gt;&lt;DIV class="forum-post"&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I have a panel dataset which includes weekly data for several brands across four years (250 observations per brand). I appreciate if you help me with doing the following three things (I apologize in advance if I shouldn't ask multiple questions under one topic). Also sorry I cannot share a sample of my data due to NDA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. My dataset includes a column named "brand_name". I want to create a new column ("id") which uniquely identifies each brand. So it should take on the same value for all the 250 rows associated with each brand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I need a new variable which assigns a number (from 1 to 250) to each observation for each brand. My dataset includes two columns "Year0" and "week". For each brand, my data starts from the 6th week of 2014 up until 52nd week of 2014. Then, from week 0 of 2015 to week 52 of 2015, and so on. In other words, when "Year0" is 2014, "week" starts from 6 all the way to 52. Then for the next row, in which "Year0" is 2015,&amp;nbsp;"week" is 0 (so the variable week starts over with a change in Year0). The new variable should assign 1 whenever Year0 is 2014 and week is 6, and continue this until the last observation, for which it should be 250.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. I have several variables which are in percentage (they have been calculated using avg() format=percent7.2 ). I need to convert these to numbers. so for example&amp;nbsp;91.70% should be converted to 0.917.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much in advance for your help.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="KudosButton lia-button-image-kudos-wrapper lia-component-kudos-widget-button-version-3 lia-component-kudos-widget-button-horizontal lia-component-kudos-widget-button lia-component-kudos-action lia-component-message-view-widget-kudos-action"&gt;&lt;DIV class="lia-button-image-kudos lia-button-image-kudos-horizontal lia-button-image-kudos-enabled lia-button-image-kudos-not-kudoed lia-button"&gt;&lt;DIV class="lia-button-image-kudos-count"&gt;&lt;SPAN class="lia-link-navigation kudos-count-link lia-link-disabled"&gt;&lt;SPAN class="MessageKudosCount lia-component-kudos-widget-message-kudos-count"&gt;0&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-button-image-kudos-label lia-component-kudos-widget-kudos-count-label"&gt;Likes&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-button-image-kudos-give"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Aug 2020 17:52:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-three-new-variables-in-a-panel/m-p/675085#M23594</guid>
      <dc:creator>AntonioFinn</dc:creator>
      <dc:date>2020-08-06T17:52:36Z</dc:date>
    </item>
    <item>
      <title>Extract first and last name from character variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Extract-first-and-last-name-from-character-variable/m-p/674887#M23589</link>
      <description>&lt;P&gt;I have a variable that has a first name and last name embedded in it. How can I extract the name into a new variable, assuming it always comes after "Requestor: " and before "Reason:"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have; 
 length note $200.;
 input note $ ;
cards;
This_is_the_Requestor:_Mary_L._Santiago_Reason:
Additional_text_This_is_the_Requestor:_John_Doe_Reason:_stuff
This_is_the_Requestor:_Tyler_Nguyen_Reason:_text_text
;
run;

data have;
 set have;
 note = tranwrd ( note, "_", " " );
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Aug 2020 01:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Extract-first-and-last-name-from-character-variable/m-p/674887#M23589</guid>
      <dc:creator>bkq32</dc:creator>
      <dc:date>2020-08-06T01:51:29Z</dc:date>
    </item>
    <item>
      <title>How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674803#M23572</link>
      <description>&lt;P&gt;How do I import a csv file into the library or is it possible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 18:00:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674803#M23572</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-05T18:00:57Z</dc:date>
    </item>
    <item>
      <title>Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674492#M23544</link>
      <description>&lt;P&gt;Hello there! i am a new SAS user and I am trying to import a CSV file...I have already created a folder in SAS where the csv file is..The problem is that when I press run, it keeps saying physical file does not exist...The folder name is rapid_syphilis and the csv in it is named sample_8.3.2020...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;/*import a CSV file*/&lt;/P&gt;&lt;P&gt;%let path=S:\CSV Import;&lt;/P&gt;&lt;P&gt;options validvarname=v7;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile="&amp;amp;path\rapid_syphilis.csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;out=syphilis&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbms=csv replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 18:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674492#M23544</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-04T18:24:46Z</dc:date>
    </item>
    <item>
      <title>Delete various datasets in one step</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Delete-various-datasets-in-one-step/m-p/674389#M23537</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem to delete some datasets in one step. I have various datasets in my work library with the same name and different numbers (e.g. data_1, data_2, data_3, ...). I would like to delete all datasets which start with the term "data".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already tried to use PROC Delete, but something is missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be very grateful if someone has an idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc Delete Data= Data: ;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Aug 2020 15:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Delete-various-datasets-in-one-step/m-p/674389#M23537</guid>
      <dc:creator>Tim_sas_</dc:creator>
      <dc:date>2020-08-04T15:21:16Z</dc:date>
    </item>
    <item>
      <title>could not find my former file on web SAS Studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/could-not-find-my-former-file-on-web-SAS-Studio/m-p/674079#M23524</link>
      <description>&lt;P&gt;when I renew my SAS studio system, I am about to continue to process my datas by&amp;nbsp;the new SAS system on line, but the problem is that I can't find my datas file which I kept before.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 10:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/could-not-find-my-former-file-on-web-SAS-Studio/m-p/674079#M23524</guid>
      <dc:creator>salamada163</dc:creator>
      <dc:date>2020-08-03T10:50:07Z</dc:date>
    </item>
    <item>
      <title>Do I need to install SAS before I take a performance based test at home?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Do-I-need-to-install-SAS-before-I-take-a-performance-based-test/m-p/674036#M23520</link>
      <description>&lt;P&gt;Do I need to install SAS before I take a performance-based test at home? Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 01:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Do-I-need-to-install-SAS-before-I-take-a-performance-based-test/m-p/674036#M23520</guid>
      <dc:creator>herewish</dc:creator>
      <dc:date>2020-08-03T01:47:25Z</dc:date>
    </item>
    <item>
      <title>Many-to-many merge</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Many-to-many-merge/m-p/673849#M23512</link>
      <description>&lt;P&gt;My apologies if this has already been answered on here and I didn't see it, but I have two tables that I'd like to do a many-to-many merge on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;                  
  input id $ color $ animal $ farm $;      
datalines;                 
a blue . .
a black . .
d green . .
;                          
run;
 
data two;                  
  input id $ animal $;      
datalines;                 
a turtle
a snake
b cat
b cow
c bird
c horse
;      
run; 

data want;                  
  input id $ color $ animal $ farm $;      
datalines;  
a blue turtle .
a blue snake .
a black turtle .
a black snake .
b . cat .
b . cow .
c . bird .
c . horse .
d green . .
;      
run; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried the following, but it doesn't yield the same results as the "want" table.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
 create table both
  as select * from one as a
   full join two as b
    on a.id = b.id;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 00:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Many-to-many-merge/m-p/673849#M23512</guid>
      <dc:creator>bkq32</dc:creator>
      <dc:date>2020-08-01T00:48:07Z</dc:date>
    </item>
    <item>
      <title>Remove 'duplicates' from membership data where term date differs</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-duplicates-from-membership-data-where-term-date-differs/m-p/673827#M23505</link>
      <description>&lt;P&gt;Using SAS enterprise guide 7.1&amp;nbsp; 32 bit.&lt;/P&gt;&lt;P&gt;My department receives a monthly membership listing.&amp;nbsp; January's data might not show a term date for a member, but February will.&amp;nbsp; People will often change subscriptions, so a member can have multiple effective and expired dates in a year on various products.&amp;nbsp; Below is the bare minimum data. EFFDAT is Effective date.&amp;nbsp; EXPDAT is a term/expired date.&amp;nbsp; 279999 means there is no term date.&amp;nbsp; All subscriptions begin on the first of the month and end the last day of the month.&amp;nbsp; So 201804 means an effective date of 4/1/2018.&amp;nbsp; &amp;nbsp;For 201804 initially there was no term date, but then they termed 201905 (or 5/30/2015) and went to a new product.&amp;nbsp; They started a new product 201906.&amp;nbsp; Initially there was no term date on 201906 effective date but then they termed 201910 and started a new product 201911 with no term date.&amp;nbsp; &amp;nbsp; I have a dozen fields I want to append to the records when I get to the desired result.&amp;nbsp; Below is one sample member record with the desired result below.&amp;nbsp; I do not want to change dates to a date format.&amp;nbsp; I already have a methodology to count months of membership using the date formats used. I am a novice and write basic queries.&amp;nbsp; I think this will need some elementary code.&amp;nbsp; No idea where that goes in my query, but I can probably ask a coworker.&amp;nbsp; I have summarized my data to the data below, but I need another level of summary as shown in desired results.&amp;nbsp; Thanks- I hope this is easy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Data&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;MEMBNO&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;EFFDAT&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;EXPDAT&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;23000&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;201804&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;279999&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;23000&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;201804&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;201905&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;23000&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;201906&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;279999&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;23000&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;201906&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;201910&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;23000&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;201911&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;279999&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Desired result&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;MEMBNO&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;EFFDAT&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;EXPDAT&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;23000&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;201804&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;201905&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;23000&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;201906&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;201910&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;23000&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;201911&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;279999&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 31 Jul 2020 20:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-duplicates-from-membership-data-where-term-date-differs/m-p/673827#M23505</guid>
      <dc:creator>rrenzi</dc:creator>
      <dc:date>2020-07-31T20:26:46Z</dc:date>
    </item>
    <item>
      <title>fill the digits with zero</title>
      <link>https://communities.sas.com/t5/New-SAS-User/fill-the-digits-with-zero/m-p/673489#M23499</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a data example:&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;20&lt;/P&gt;&lt;P&gt;345&lt;/P&gt;&lt;P&gt;4654&lt;/P&gt;&lt;P&gt;I want to make the above ID to 5digits by filling the initial digits with Zero.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;00001&lt;/P&gt;&lt;P&gt;00020&lt;/P&gt;&lt;P&gt;00345&lt;/P&gt;&lt;P&gt;04654&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone help me with this? thank you in advance&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 16:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/fill-the-digits-with-zero/m-p/673489#M23499</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2020-07-30T16:17:21Z</dc:date>
    </item>
    <item>
      <title>Not enough quota is available to process this command.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Not-enough-quota-is-available-to-process-this-command/m-p/673427#M23497</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to run a piece of code but I keep getting this error message - any advice?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Windows error code: 1816 in hc_normal_write for &lt;BR /&gt;&lt;EM&gt;/file path/&lt;/EM&gt;, Not enough quota &lt;BR /&gt;is available to process this command.&lt;BR /&gt;ERROR: An I/O error has occurred on file data.data1.&lt;BR /&gt;ERROR: File data.data1 is damaged. I/O processing did not complete.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 13:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Not-enough-quota-is-available-to-process-this-command/m-p/673427#M23497</guid>
      <dc:creator>marleeakerson</dc:creator>
      <dc:date>2020-07-30T13:45:06Z</dc:date>
    </item>
    <item>
      <title>Better understanding of IF/THEN-DO</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Better-understanding-of-IF-THEN-DO/m-p/673351#M23491</link>
      <description>&lt;P&gt;I am having trouble understanding why " &lt;FONT color="#FF0000"&gt;OR&lt;/FONT&gt; " is used instead of " AND " for Step 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Question Asked:&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Step 1:&lt;/SPAN&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;create a temporary data set,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;cleandata36&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;In this data set, convert all&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;group&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;values to upper case.&lt;/LI&gt;&lt;LI&gt;Then keep only observations with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;group&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;equal to 'A' or 'B'.&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;Step 2:&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;Determine the MEDIAN value for the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Kilograms&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;variable for each&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;group&lt;/STRONG&gt;&amp;nbsp;(A,B) in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;cleandata36&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;data set. Round MEDIAN to the nearest whole number.&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#FF0000"&gt;Step 3:&lt;/FONT&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#FF0000"&gt;create&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;results.output36&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;cleandata36&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#FF0000"&gt;Ensure that all values for variable&amp;nbsp;&lt;STRONG&gt;Kilograms&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;are between 40 and 200, inclusively.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#FF0000"&gt;If the value is missing or out of range, replace the value with the MEDIAN&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Kilograms&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;value for the respective&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;group&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(A,B) calculated in step 2.&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Step 1: &lt;BR /&gt;data work.cleandata36;
  set cert.input36;
  group=upcase(group);
  if upcase(group) in ('A','B');
run;

Step 2:&lt;BR /&gt;proc means data=work.cleandata36 median;
class group;
var kilograms;
run;

Step 3:&lt;BR /&gt;data results.output36;
  set cleandata36;
  if Kilograms &amp;lt; 40 &lt;FONT color="#FF0000"&gt;OR&lt;/FONT&gt; Kilograms &amp;gt; 200 then do;
  if group='A' then kilograms=79;
  else kilograms=89; 
end;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jul 2020 04:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Better-understanding-of-IF-THEN-DO/m-p/673351#M23491</guid>
      <dc:creator>armoore</dc:creator>
      <dc:date>2020-07-30T04:55:53Z</dc:date>
    </item>
    <item>
      <title>Merge of 3 data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Merge-of-3-data-sets/m-p/673197#M23488</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a very basic question but something seems to be wrong with my code.&lt;/P&gt;&lt;P&gt;I would like to merge 3 data sets (Out_1, Out_2, Out_3, please see below). All have exactly the same structure (variables) and I would like to create a merged table that includes all 3 datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data final;
Merge Out_1 Out_2 Out_3;
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There seems to be something wrong with it because the merged file only includes the information from Out_3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be very glad if someone could help me out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Model.JPG" style="width: 863px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47775iB6AFB8CCD3AF555D/image-size/large?v=1.0&amp;amp;px=999" title="Model.JPG" alt="Model.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 16:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Merge-of-3-data-sets/m-p/673197#M23488</guid>
      <dc:creator>Tim_sas_</dc:creator>
      <dc:date>2020-07-29T16:20:58Z</dc:date>
    </item>
    <item>
      <title>remove last one digit and first two digits from a number</title>
      <link>https://communities.sas.com/t5/New-SAS-User/remove-last-one-digit-and-first-two-digits-from-a-number/m-p/673116#M23486</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;2000032&lt;/P&gt;&lt;P&gt;2000072&lt;/P&gt;&lt;P&gt;2000092&lt;/P&gt;&lt;P&gt;I want the dataset:&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;0003&lt;/P&gt;&lt;P&gt;0007&lt;/P&gt;&lt;P&gt;0009&lt;/P&gt;&lt;P&gt;I want to remove first 2digits and last one digit.&lt;/P&gt;&lt;P&gt;Can anyone help in this. thank you&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 13:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/remove-last-one-digit-and-first-two-digits-from-a-number/m-p/673116#M23486</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2020-07-29T13:37:42Z</dc:date>
    </item>
    <item>
      <title>Observations Selection</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Observations-Selection/m-p/672850#M23480</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with the following structure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="exposure dataset structure.JPG" style="width: 812px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47739iDA2FB67EFE201391/image-size/large?v=1.0&amp;amp;px=999" title="exposure dataset structure.JPG" alt="exposure dataset structure.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is keep only those observations with a day_01 to day_05 value of "1" for any day between the exposure_start and exposure_end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to do this for each Participant_ID. The exposure_start and exposure_end values are unique to each participant_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code for this sample dataset:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	input WELL_ID DAY_01 DAY_02 DAY_03 DAY_04 DAY_05 EXPOSURE_START $ EXPOSURE_END $ PARTICIPANT_ID;
	FORMAT WELL_ID z14.;
	datalines;
		01133244410000 0 0 1 0 0 DAY_01 DAY_05 1
		02019220960000 0 0 0 0 0 DAY_01 DAY_05 1
		07167297020000 1 0 0 0 0 DAY_01 DAY_05 1
		17067210480000 0 0 0 0 0 DAY_01 DAY_05 1
		34000000000000 0 0 0 0 0 DAY_01 DAY_05 1
		34001200010000 0 0 0 0 0 DAY_02 DAY_04 2
		34001200020000 0 0 0 0 0 DAY_02 DAY_04 2
		34001200030000 0 0 0 1 0 DAY_02 DAY_04 2
		34001200040000 0 0 0 0 0 DAY_02 DAY_04 2
		34001200050000 0 0 0 0 0 DAY_02 DAY_04 2
	;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 14:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Observations-Selection/m-p/672850#M23480</guid>
      <dc:creator>JJ_83</dc:creator>
      <dc:date>2020-07-28T14:29:04Z</dc:date>
    </item>
    <item>
      <title>Skipping cycles based on dates contained in another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Skipping-cycles-based-on-dates-contained-in-another-dataset/m-p/672685#M23470</link>
      <description>&lt;P&gt;Hello there SAS community and I hope to be clear enough about the problem I'm facing.&lt;/P&gt;&lt;P&gt;I have a dataset with many variables including these three : &lt;STRONG&gt;start_date&lt;/STRONG&gt;, &lt;STRONG&gt;end_date &lt;/STRONG&gt;and l&lt;STRONG&gt;eaves_count&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The first variable tells the date when a person is absent from work(due to health reasons,&amp;nbsp; vacations etc), the second when it finishes the absence period while the third gives the absence duration in days. Here is a small sample of the data:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;start_date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end_date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; leaves_count&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;06AUG2018&amp;nbsp; &amp;nbsp;10AUG2018&amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;BR /&gt;&amp;nbsp;13AUG2018&amp;nbsp; &amp;nbsp;14AUG2018&amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;BR /&gt;&amp;nbsp;17AUG2018&amp;nbsp; &amp;nbsp;17AUG2018&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;What I would like is an output like this in which each absence is printed:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;start_date&amp;nbsp; &amp;nbsp; &amp;nbsp; end_date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; leaves_count&lt;/STRONG&gt;&lt;BR /&gt;06AUG2018&amp;nbsp; 10AUG2018&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;07AUG2018&amp;nbsp; 10AUG2018&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;08AUG2018&amp;nbsp; 10AUG2018&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;09AUG2018&amp;nbsp; 10AUG2018&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;10AUG2018&amp;nbsp; 10AUG2018&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;13AUG2018&amp;nbsp; 14AUG2018&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;14AUG2018&amp;nbsp; 14AUG2018&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;17AUG2018&amp;nbsp; 17AUG2018&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have already a similar result but now I have a problem i.e. sometimes the absence period contains one or more days that should not be counted as an absence since they are already national holiday. I have the&amp;nbsp;holiday list in another SAS dataset that is just one column similar like this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;holydays&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;01JAN2020&lt;BR /&gt;06JAN2020&lt;BR /&gt;25APR2020&lt;BR /&gt;01MAY2020&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So, I would like to write a code able to compare &lt;EM&gt;from_date&lt;/EM&gt; with the dates contained in the other dataset and skip the holidays if they are contained within the absence period and to be more clear here is an example to show what I'm trying to obtain:&lt;/P&gt;&lt;P&gt;Input&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;start_date&amp;nbsp; &amp;nbsp; &amp;nbsp; end_date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;leaves_count&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;30DEC2019&amp;nbsp; &amp;nbsp;03JAN2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Output&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;start_date&amp;nbsp; &amp;nbsp; &amp;nbsp; end_date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; leaves_count&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;30DEC2019&amp;nbsp; &amp;nbsp;03JAN2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;31DEC2019&amp;nbsp; &amp;nbsp;03JAN2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;02JAN2020&amp;nbsp; &amp;nbsp; 03JAN2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;03JAN2020&amp;nbsp; &amp;nbsp; 03JAN2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So, the code should "jump/skip" a cycle in this case and not printing 01JAN2020 but of course it should be valid for all other holidays within the list.&lt;/P&gt;&lt;P&gt;Hope you can give me some insights or suggestions on how to tackle this problem.&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.s.&lt;/P&gt;&lt;P&gt;I'm working on Enterprise Guide version&amp;nbsp;8.2 (8.2.0.946) (32-bit).&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 20:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Skipping-cycles-based-on-dates-contained-in-another-dataset/m-p/672685#M23470</guid>
      <dc:creator>MMariani</dc:creator>
      <dc:date>2020-07-27T20:38:40Z</dc:date>
    </item>
    <item>
      <title>Fonction INTCK : Date de sortie erronée</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fonction-INTCK-Date-de-sortie-erron%C3%A9e/m-p/672551#M23449</link>
      <description>&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;Bonjour,&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;Je rencontre un problème avec ma fonction INTCK. &lt;/FONT&gt;&lt;FONT&gt;Les données de sortie que j'obtiens ne sont pas toutes bonnes.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;Voici mon code:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
CREATE TABLE VENTES_CAMPAGNE AS 

SELECT DISTINCT
TVEN.SIREN,
TRESUL.UTILISATEURID,
TVEN.OFFRE_VENTES,
TVEN.FAMILLE_VENTES,
TVEN.DATE_VALIDE2 AS DATE_ED_VENTE,
TVEN.PRI_IC AS MONTANT_PRI_VENTE,
TRESUL.DATEFIN_CAMPAGNE,
intnx('dtmonth',TRESUL.DATECREATION_LEAD,+4,'SAMEDAY') AS DFC_3 FORMAT=DATETIME16.,
TRESUL.DATECREATION_LEAD


FROM WORK.VENTES_TOTALE TVEN 
INNER JOIN WORK.CIBLAGE TRESUL ON (TRESUL.SIREN = TVEN.SIREN)

GROUP BY 1,2,3

;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;et voici les données que j'obtiens:&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;Les 3 premières lignes sont bonnes mais pas la 4ème ... etc&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CélineSBD17_0-1595860428050.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47691iB5BE5108C734D672/image-size/medium?v=1.0&amp;amp;px=400" title="CélineSBD17_0-1595860428050.png" alt="CélineSBD17_0-1595860428050.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;BR /&gt;Savez-vous pourquoi?&lt;/SPAN&gt;&lt;BR /&gt;Certaines de mes dates DFC_3 sont bonnes et d'autres non ...&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 14:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fonction-INTCK-Date-de-sortie-erron%C3%A9e/m-p/672551#M23449</guid>
      <dc:creator>CélineSBD17</dc:creator>
      <dc:date>2020-07-27T14:34:00Z</dc:date>
    </item>
    <item>
      <title>Iterative procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Iterative-procedure/m-p/672522#M23441</link>
      <description>&lt;P&gt;Good Morning, my name is Thiago and I'm trying to do an interactive procedure to calculate real base and ceiling temperatures of beta model in tree growth.&lt;/P&gt;&lt;P&gt;I used a procedure described in an article (image below), however I do not understand the way it is done, since my SAS code is showing errors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Thi_Oliveira_0-1595855423847.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47687iCD14CC1607D01AAA/image-size/medium?v=1.0&amp;amp;px=400" title="Thi_Oliveira_0-1595855423847.png" alt="Thi_Oliveira_0-1595855423847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;SAS code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data temp;&lt;BR /&gt;k=(Tc-To)/(To-Tb);&lt;BR /&gt;l=(0.05**2)*(To-Tb)*((Tc-To)**k);&lt;BR /&gt;do i=0 to 10;&lt;BR /&gt;L[i+1]=l/(((Tc-Tb)**(k+1))*((1-L[i])**k));&lt;BR /&gt;U[i+1]=(l/(((Tc-Tb)**(k+1))*((1-U[i])))**(1/k);&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data "temp" has the To, Tb and Tc values for the iteractive procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone could help about that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 13:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Iterative-procedure/m-p/672522#M23441</guid>
      <dc:creator>Thi_Oliveira</dc:creator>
      <dc:date>2020-07-27T13:12:50Z</dc:date>
    </item>
    <item>
      <title>deleting observations conditioned by previous observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/deleting-observations-conditioned-by-previous-observations/m-p/672495#M23432</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need help removing observations depending on previous observations.&lt;/P&gt;&lt;P&gt;I have&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp; HA&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp; HA&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each ID I want to keep the observation where HA=1 or HA=2. If one ID has both HA=1 and HA=2, I only want to keep the one where HA=1. If an ID has neither HA=1 nor 2 (ie. only HA=3), then I want to keep all the observations with HA=3.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 11:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/deleting-observations-conditioned-by-previous-observations/m-p/672495#M23432</guid>
      <dc:creator>RTN</dc:creator>
      <dc:date>2020-07-27T11:38:11Z</dc:date>
    </item>
    <item>
      <title>what is basic STMS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/what-is-basic-STMS/m-p/672356#M23426</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;Does anyone know what is basic STMS?&amp;nbsp; I’m not sure if STMS stands for Scientific,&amp;nbsp;Technical,&amp;nbsp;Medical,&amp;nbsp;and&amp;nbsp;Scholarly or something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your kind help!&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 00:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/what-is-basic-STMS/m-p/672356#M23426</guid>
      <dc:creator>Amy0223</dc:creator>
      <dc:date>2020-07-26T00:17:52Z</dc:date>
    </item>
    <item>
      <title>Display mean on boxplot with sgpanel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Display-mean-on-boxplot-with-sgpanel/m-p/672342#M23425</link>
      <description>&lt;P&gt;I have an sgpanel where I want to show categorical boxplots inside each panel. For these boxplots, I'd like to display the mean quantity. However, I can't find a way to do this. Is it possible? Here's my proc sgpanel, and the result is below. I'd like to display the value for mean on this panel for each of the box.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sgpanel data=new_one;
panelby testtrain;
vbox diff/category=category nooutliers group=category transparency=0.3;
refline 0/axis=Y lineattrs=(colors=black thickness=2);
run;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hinashah_0-1595703726855.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47670i36C1EF145B339996/image-size/medium?v=1.0&amp;amp;px=400" title="hinashah_0-1595703726855.png" alt="hinashah_0-1595703726855.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 19:04:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Display-mean-on-boxplot-with-sgpanel/m-p/672342#M23425</guid>
      <dc:creator>hinashah</dc:creator>
      <dc:date>2020-07-25T19:04:57Z</dc:date>
    </item>
    <item>
      <title>Excel file uploaded in library successfully</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-file-uploaded-in-library-successfully/m-p/672318#M23420</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ws_adan_0-1595687805699.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47667i55D82F1AEB219974/image-size/medium?v=1.0&amp;amp;px=400" title="ws_adan_0-1595687805699.png" alt="ws_adan_0-1595687805699.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;in message libref EXL was successfully assigned but it is now showing excel sheet in library.&lt;/P&gt;libname ExL xlsx 'C:\Users\Wajeeha Bilal\Desktop\T2_YARD.XLSX';</description>
      <pubDate>Sat, 25 Jul 2020 14:39:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-file-uploaded-in-library-successfully/m-p/672318#M23420</guid>
      <dc:creator>ws_adan</dc:creator>
      <dc:date>2020-07-25T14:39:43Z</dc:date>
    </item>
    <item>
      <title>Cumulative returns for different time windows</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Cumulative-returns-for-different-time-windows/m-p/672234#M23411</link>
      <description>&lt;P&gt;Hi SAS community,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is my very first post to this forum, I hope I can ask my question while abiding by the forum rules.&lt;BR /&gt;&lt;BR /&gt;I have an unbalanced panel data set of daily security log returns. This data set is constructed by merging two data sets: security return data (firm id is gvkey) and another data set containing firm-specific information (firm id is gvkey+iid). Each observation has two dates (date and date2) together with a dummy variable and I'd like to calculate the cumulative log returns between these two dates for those having dummy=1. I'd also like to note that the data is not uniquely defined in the gvkey-date pair since the data set containing firm characteristics has a more disaggregated firm id definition (gvkey+iid). Below, I included a screenshot of the part of my data set:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sample.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47655i72D4D0C3FA5FE052/image-size/medium?v=1.0&amp;amp;px=400" title="sample.png" alt="sample.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;What I want to do is to calculate the cumulative returns between date and date2 only for row numbers 301, 302, and 310 (where dummy=1). Below screenshot displays what I am trying to get in the end:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sample2.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47659iDFE848AE8F7193A4/image-size/medium?v=1.0&amp;amp;px=400" title="sample2.png" alt="sample2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Just to make it clearer, the cumulative return for row 310 is calculated as the sum of log-returns shown within red rectangles (or, the sum of single daily log returns from 12/21/2010 to 12/31/2010). Of course, this is just a sample data set, the original data has millions of observations with multiple gvkeys and a larger time frame.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some experience with SAS but I couldn't think a clever way to tackle this specific problem. I'd appreciate your help!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 22:35:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Cumulative-returns-for-different-time-windows/m-p/672234#M23411</guid>
      <dc:creator>anildonmez</dc:creator>
      <dc:date>2020-07-24T22:35:01Z</dc:date>
    </item>
    <item>
      <title>How do I set up complete 1st demo (st101d01.sas) in the Statistics 1 course?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-set-up-complete-1st-demo-st101d01-sas-in-the-Statistics/m-p/672143#M23408</link>
      <description>&lt;P&gt;I just started the Statistics 1: Introduction to ANOVA, Regression, and Logistic Regression course.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried to do the&amp;nbsp;&lt;STRONG&gt;st101d01.sas&amp;nbsp;&lt;/STRONG&gt;demo, I received the following error messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: The ODS initializer failed to instantiate during SAS startup.&lt;BR /&gt;ERROR: Exception text: Assistive Technology not found:&lt;BR /&gt;com.sun.java.accessibility.AccessBridge&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have SAS 9.4 (English with DCBS) and SAS Enterprise Guide 7.4 (64-bit).&amp;nbsp; Please note that&amp;nbsp;I first ran the setup file before running parts 1 (%let statements) and 2 (proc freq) of the st101d01.sas file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your assistance!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 18:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-set-up-complete-1st-demo-st101d01-sas-in-the-Statistics/m-p/672143#M23408</guid>
      <dc:creator>ewei</dc:creator>
      <dc:date>2020-07-24T18:10:14Z</dc:date>
    </item>
    <item>
      <title>PCA in SAS viya , How to do eigen vector matrix(or rotation matrix) by using Proc PCA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PCA-in-SAS-viya-How-to-do-eigen-vector-matrix-or-rotation-matrix/m-p/672141#M23407</link>
      <description>&lt;P&gt;I’m doing PCA on a training dataset before training a predictive model and I'm using 3 PC’s that explains about 97% of the data. Now, how can I do PCA transformation on test data? I will probably have to use eigen vector matrix(or rotation matrix) obtained from the PCA results of the train dataset and perform matrix multiplication with test data. Do I have to scale and center the test data before? Or is there a function in SAS that does this operation? If you are familiar with R, it will be equivalent to using predict() function with prcomp object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 04:51:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PCA-in-SAS-viya-How-to-do-eigen-vector-matrix-or-rotation-matrix/m-p/672141#M23407</guid>
      <dc:creator>satgrgfq4tr4fds</dc:creator>
      <dc:date>2020-07-26T04:51:26Z</dc:date>
    </item>
    <item>
      <title>Applying SAS licences to SAS9.4</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Applying-SAS-licences-to-SAS9-4/m-p/671994#M23404</link>
      <description>&lt;P&gt;will the relicensing cause any unexpected access to drop off&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 01:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Applying-SAS-licences-to-SAS9-4/m-p/671994#M23404</guid>
      <dc:creator>JLARK</dc:creator>
      <dc:date>2020-07-24T01:33:15Z</dc:date>
    </item>
    <item>
      <title>Adding rows to a data set for each ID</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Adding-rows-to-a-data-set-for-each-ID/m-p/671886#M23394</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;i have an table with repeating id ( because of the recurring events) and i need to add two rows for each observations. Ex if id 1 exist with 4 rows , i need to more rows with same id number which in this case is 1. This should happen for different id i have in my data set.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 17:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Adding-rows-to-a-data-set-for-each-ID/m-p/671886#M23394</guid>
      <dc:creator>alpera</dc:creator>
      <dc:date>2020-07-23T17:31:46Z</dc:date>
    </item>
    <item>
      <title>Integer overflow on computing amount of memory required A request to allocate the memory ....SAS9.4</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Integer-overflow-on-computing-amount-of-memory-required-A/m-p/671844#M23393</link>
      <description>&lt;P&gt;Hi! How can I bypass or resolve this problem in my log... I am tryin to create a model where I have multiple SCC_linear_score by lactation, multiples lactations by cow and multiple cows by herd, and of course multiple herds.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=qulac;
by No_ferme cow jr_test;
run;

proc mixed data=qulac order=data /*method=ml*/;
class type_lit cow No_ferme Lac;
model SCC_linear_score=type_lit  /solution cl;
random intercept /subject=No_ferme;
random intercept/subject=Cow (No_ferme);
Repeated /subject=lac (cow No_ferme) type=toep;
lsmeans type_lit / cl;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here's a print screen form my log.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annie_Fréchette_0-1595516068915.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47600iF61795E77AE9EB5E/image-size/medium?v=1.0&amp;amp;px=400" title="Annie_Fréchette_0-1595516068915.png" alt="Annie_Fréchette_0-1595516068915.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 14:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Integer-overflow-on-computing-amount-of-memory-required-A/m-p/671844#M23393</guid>
      <dc:creator>Annie_Fréchette</dc:creator>
      <dc:date>2020-07-23T14:55:04Z</dc:date>
    </item>
    <item>
      <title>sas_alo</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sas-alo/m-p/671809#M23389</link>
      <description />
      <pubDate>Thu, 23 Jul 2020 13:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sas-alo/m-p/671809#M23389</guid>
      <dc:creator>asassasasas</dc:creator>
      <dc:date>2020-07-23T13:09:39Z</dc:date>
    </item>
    <item>
      <title>joining tables: a version of many to one??</title>
      <link>https://communities.sas.com/t5/New-SAS-User/joining-tables-a-version-of-many-to-one/m-p/671658#M23383</link>
      <description>&lt;P&gt;Hi SAS users,&lt;/P&gt;&lt;P&gt;I need to join two tables, and no matter which way I go, I get many blank cells.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1 has many rows with events and dates for each event.&lt;/P&gt;&lt;P&gt;Table 2 has 41 rows with inflation index by year and quarter for 10 years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a table that has inflation value matched to each date.&amp;nbsp; For example, all events occuring between January 1, 2010 and March 31, 2010 should have the inflation value for 2010Q1 in the new column.&lt;/P&gt;&lt;P&gt;My attempts at using proc sql (including left join) to join the tables are giving me thousands of blank cells in the inflation column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is, as always, appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 03:30:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/joining-tables-a-version-of-many-to-one/m-p/671658#M23383</guid>
      <dc:creator>drshashlik</dc:creator>
      <dc:date>2020-07-23T03:30:17Z</dc:date>
    </item>
    <item>
      <title>serial ID</title>
      <link>https://communities.sas.com/t5/New-SAS-User/serial-ID/m-p/671530#M23378</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have repetitive ClassID and I want to give seperated ID per classID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ClassID&amp;nbsp; &amp;nbsp; ID&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want create ID's like above using the classID.&lt;/P&gt;&lt;P&gt;can anyone help me with this?&lt;/P&gt;&lt;P&gt;thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 18:33:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/serial-ID/m-p/671530#M23378</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2020-07-22T18:33:01Z</dc:date>
    </item>
    <item>
      <title>Converting data character to numeric, yeah again.... (SAS9.4)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Converting-data-character-to-numeric-yeah-again-SAS9-4/m-p/671529#M23377</link>
      <description>&lt;P&gt;Hi, I've read some posts and watch the tutorial, but I can figure out how to resolver my (pretty simple) problem. My original data are character format $105 (even if there are numbers) and I want to create a new variable where they would be numerics... Can you help me ? I'm confused between the input, the informat and format...&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*changer mon type de colonnes, ce sont toutes des character sauf No_ferme*/
data prx;
set pr;
DIMx=input(DIM, $8.);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is a print screen of the data and the code.... THANKS!:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annie_Fréchette_0-1595442588649.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47525i7CB09546C9ADAA4A/image-size/medium?v=1.0&amp;amp;px=400" title="Annie_Fréchette_0-1595442588649.png" alt="Annie_Fréchette_0-1595442588649.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 18:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Converting-data-character-to-numeric-yeah-again-SAS9-4/m-p/671529#M23377</guid>
      <dc:creator>Annie_Fréchette</dc:creator>
      <dc:date>2020-07-22T18:31:46Z</dc:date>
    </item>
    <item>
      <title>Variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variable/m-p/671277#M23370</link>
      <description>&lt;P&gt;I have a variable name with value NaveenKumar, HarishChandra, SivaKumar&lt;/P&gt;&lt;P&gt;But I want to separate as firstname and last name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex Firstname ------------Naveen lastname&amp;nbsp; &amp;nbsp;----Kumar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 03:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variable/m-p/671277#M23370</guid>
      <dc:creator>honeyblue</dc:creator>
      <dc:date>2020-07-22T03:50:54Z</dc:date>
    </item>
    <item>
      <title>Variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variable/m-p/671212#M23366</link>
      <description>&lt;P&gt;I have 25 observations i want to assign 1 to a variable for 1 - 12 observations and assign 2 to the same variable for 13-25 observations&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 20:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variable/m-p/671212#M23366</guid>
      <dc:creator>honeyblue</dc:creator>
      <dc:date>2020-07-21T20:58:39Z</dc:date>
    </item>
    <item>
      <title>difference of # of days from 1st row to 2nd row and 2nd row to 3rd row so on by ID</title>
      <link>https://communities.sas.com/t5/New-SAS-User/difference-of-of-days-from-1st-row-to-2nd-row-and-2nd-row-to-3rd/m-p/671123#M23363</link>
      <description>&lt;P&gt;i.e first # of days (difference)&amp;nbsp; will be missing and the 2nd will be difference of Jan 22, 2020-Jan 01, 2020 and so on by ID&lt;BR /&gt;&lt;STRONG&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# of days (difference)&lt;/STRONG&gt;&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jan 01, 2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jan 22, 2020&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Feb 02, 2020&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; Jan 01, 2020&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; Jan 24, 2020&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; Feb 12, 2020&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 16:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/difference-of-of-days-from-1st-row-to-2nd-row-and-2nd-row-to-3rd/m-p/671123#M23363</guid>
      <dc:creator>mahossain</dc:creator>
      <dc:date>2020-07-21T16:54:47Z</dc:date>
    </item>
    <item>
      <title>range in if statment</title>
      <link>https://communities.sas.com/t5/New-SAS-User/range-in-if-statment/m-p/671091#M23358</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Ensure that all values for variable&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Kilograms&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;are between 40 and 200, inclusively.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &lt;STRONG&gt;what does the word inclusive mean here&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;should it be this option 1) ,if so why?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if Kilograms ge 40 or Kilograms le 200 then do;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;is this correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or should i write kilograms &amp;gt; 40 or kilograms =40 or kilograms =200 or kilograms &amp;lt; 200 them do;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 16:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/range-in-if-statment/m-p/671091#M23358</guid>
      <dc:creator>veda8</dc:creator>
      <dc:date>2020-07-21T16:08:52Z</dc:date>
    </item>
    <item>
      <title>If condition error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/If-condition-error/m-p/671010#M23350</link>
      <description>&lt;P&gt;I have two numeric variables with 1 and 0 as data points.&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt;set new1;&lt;/P&gt;&lt;P&gt;if a=1 and b=0 then out="bad" else bad="good";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting below error:&lt;/P&gt;&lt;P&gt;Note: Invalid Numeric data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant change the dataset but how to change the code to handle this error&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 14:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/If-condition-error/m-p/671010#M23350</guid>
      <dc:creator>suresh123</dc:creator>
      <dc:date>2020-07-21T14:38:15Z</dc:date>
    </item>
    <item>
      <title>proc format and proc freq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-format-and-proc-freq/m-p/671009#M23349</link>
      <description>&lt;P&gt;A while back a responder generously provided to me a detailed example on writing a proc format statement. I'm now trying to use that example and do something useful. Here's what i have.&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value couse2 0='0 neither' 1='1 either' 2 '2 both';&lt;/P&gt;&lt;P&gt;value dalc1r_ 0= '0 no' 1='1 yes';&lt;BR /&gt;value dmj1r_ 0 = '0 no' 1 = '1 yes';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc freq data=co_usevars;&lt;/P&gt;&lt;P&gt;table couse2;&lt;/P&gt;&lt;P&gt;table dalc1r*dmj1r;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;Here's what i want. Instead of the standard listing, I want to see the frequency listings show this;&lt;/P&gt;&lt;P&gt;0 neither 200&amp;nbsp;&amp;nbsp; 25.00 &amp;nbsp; 200 &amp;nbsp; 25.00&lt;/P&gt;&lt;P&gt;1 either 400&amp;nbsp; 50.00&amp;nbsp; 600&amp;nbsp; 75.00&lt;/P&gt;&lt;P&gt;2 both 200&amp;nbsp; 25.00&amp;nbsp; 800&amp;nbsp; 100.00&lt;/P&gt;&lt;P&gt;I want the crosstab to show, what i would call the value labels, e.g., 1 yes, in the table.&lt;/P&gt;&lt;P&gt;Nothing works.&lt;/P&gt;&lt;P&gt;The format for couse2 gives an error because a variable can not end in a number, dalc1r_ doesn't give an error in the format command but neither that construction nor dalc1r yields the value labels in either the frequency listing nor the crosstab.You may be wondering why i wrote dalc1r 0='0 no' instead of dalc1r 0='no'. That's because a much more experienced use warned me that the 'no' wipes out the 0. I've got Ron Cody's very nice book and, interesting ly, in the proc format chapter he does not show an example that uses proc freq. I been told that proc report or proc tabulate gives more options. I accept that it's true--and i'm sure that additional work is involved. What is useful enough to us is a fully labeled frequency listing or crosstab table, sometimes with a chisquare and sometimes without a chisquare.&lt;/P&gt;&lt;P&gt;The question is can sas be made to give me what i want?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Gene Maguin&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;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 14:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-format-and-proc-freq/m-p/671009#M23349</guid>
      <dc:creator>emaguin</dc:creator>
      <dc:date>2020-07-21T14:38:11Z</dc:date>
    </item>
    <item>
      <title>Where clause doesn't work.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/670852#M23332</link>
      <description>&lt;P&gt;SAS Studio doesn't filter it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Add a WHERE statement that uses the SUBSTR        *;&lt;BR /&gt;*       function to include rows where the second letter  *;&lt;BR /&gt;*       of Basin is P (Pacific ocean storms). &lt;/PRE&gt;
&lt;PRE&gt;&lt;BR /&gt;data pacific;&lt;BR /&gt;	set pg1.storm_summary;&lt;BR /&gt;	drop Type Hem_EW Hem_NS MinPressure Lat Lon;&lt;BR /&gt;    WHERE Substr(Basin, 2, 1) = "P";&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;It shows all the values for the column when I run this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Regards,&lt;/P&gt;
&lt;P&gt;GN&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 01:34:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Where-clause-doesn-t-work/m-p/670852#M23332</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2020-07-21T01:34:53Z</dc:date>
    </item>
    <item>
      <title>Date and text in the same column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Date-and-text-in-the-same-column/m-p/670844#M23330</link>
      <description>&lt;P&gt;I have a dataset that contains both text and date value in&amp;nbsp; one column. When I import the dataset in SAS, that column is imported as char. How do I keep the dates in DATE9. format and convert the texts as missing in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;identifier&lt;/TD&gt;&lt;TD&gt;effectiveFromTime&lt;/TD&gt;&lt;TD&gt;effectiveThruTime&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;4/23/1987 23:00&lt;/TD&gt;&lt;TD&gt;NULL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6/4/1987 0:55&lt;/TD&gt;&lt;TD&gt;7/1/1997 10:50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;5/27/1987 8:20&lt;/TD&gt;&lt;TD&gt;7/15/2015 11:20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;5/28/1987 5:20&lt;/TD&gt;&lt;TD&gt;8/4/2011 0:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;6/1/1987 14:56&lt;/TD&gt;&lt;TD&gt;NULL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;5/28/1987 4:50&lt;/TD&gt;&lt;TD&gt;NULL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;4/15/1987 0:20&lt;/TD&gt;&lt;TD&gt;NULL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;5/11/1987 17:06&lt;/TD&gt;&lt;TD&gt;9/6/1996 21:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;6/8/1987 10:40&lt;/TD&gt;&lt;TD&gt;7/1/1997 11:50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 00:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Date-and-text-in-the-same-column/m-p/670844#M23330</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2020-07-21T00:11:48Z</dc:date>
    </item>
    <item>
      <title>Creating three new variables in a panel dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-three-new-variables-in-a-panel-dataset/m-p/670834#M23329</link>
      <description>&lt;P&gt;Hi friends,&lt;/P&gt;
&lt;P&gt;I have a panel dataset which includes weekly data for several brands across four years (250 observations per brand). I appreciate if you help me with doing the following three things (I apologize in advance if I shouldn't ask multiple questions under one topic). Also sorry I cannot share a sample of my data due to NDA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. My dataset includes a column named "brand_name". I want to create a new column ("id") which uniquely identifies each brand. So it should take on the same value for all the 250 rows associated with each brand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. I need a new variable which assigns a number (from 1 to 250) to each observation for each brand. My dataset includes two columns "Year0" and "week". For each brand, my data starts from the 6th week of 2014 up until 52nd week of 2014. Then, from week 0 of 2015 to week 52 of 2015, and so on. In other words, when "Year0" is 2014, "week" starts from 6 all the way to 52. Then for the next row, in which "Year0" is 2015,&amp;nbsp;"week" is 0 (so the variable week starts over with a change in Year0). The new variable should assign 1 whenever Year0 is 2014 and week is 6, and continue this until the last observation, for which it should be 250.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. I have several variables which are in percentage (they have been calculated using avg() format=percent7.2 ). I need to convert these to numbers. so for example&amp;nbsp;91.70% should be converted to 0.917.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much in advance for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 22:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-three-new-variables-in-a-panel-dataset/m-p/670834#M23329</guid>
      <dc:creator>AlG</dc:creator>
      <dc:date>2020-07-20T22:56:44Z</dc:date>
    </item>
    <item>
      <title>Separating text into separate variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Separating-text-into-separate-variables/m-p/670755#M23327</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a variable with first and last names and I am trying to separate them into two separate variables. See the sample data below:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Name&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Smith Joe&lt;/P&gt;
&lt;P&gt;Reynolds Jack&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anderson Amy&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I want the data to read:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Last Name&lt;/U&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;U&gt; First Name&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Smith&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Joe&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reynolds&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jack&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anderson&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Amy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have any advice for me? Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 19:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Separating-text-into-separate-variables/m-p/670755#M23327</guid>
      <dc:creator>marleeakerson</dc:creator>
      <dc:date>2020-07-20T19:10:32Z</dc:date>
    </item>
    <item>
      <title>proc sort data using noduprecs</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-sort-data-using-noduprecs/m-p/670668#M23321</link>
      <description>&lt;P&gt;do we have to always sort by _ALL_ to use noduprecs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 14:08:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-sort-data-using-noduprecs/m-p/670668#M23321</guid>
      <dc:creator>veda8</dc:creator>
      <dc:date>2020-07-20T14:08:49Z</dc:date>
    </item>
    <item>
      <title>Unable to connect to SAS Studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-connect-to-SAS-Studio/m-p/670380#M23311</link>
      <description>&lt;P&gt;I downloaded SAS University Edition and VMWare Playstation 15 and successfully did some coding on SAS Studio. Now I am trying to log into SAS Studio and it is giving me a connection error (ERR_Connection) on Internet Explorer and ERR_EMPTY_ RESPONSE on google Chrome. Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 20:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-connect-to-SAS-Studio/m-p/670380#M23311</guid>
      <dc:creator>rmosaad</dc:creator>
      <dc:date>2020-07-18T20:30:14Z</dc:date>
    </item>
    <item>
      <title>compare two datasets and create a new dataset that only has different observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/compare-two-datasets-and-create-a-new-dataset-that-only-has/m-p/670317#M23307</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two datasets with different variables. But both datasets have a variable "sequence number" to represent observations. I want to know how many observations are different from each other (or how many observations are not in dataset 1 but in dataset 2). I also want to create a new dataset with variables in dataset 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dataset 1:&lt;/P&gt;
&lt;P&gt;seqn variable1 variable 2&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;
&lt;P&gt;......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset 2:&lt;/P&gt;
&lt;P&gt;seqn variable3 variable 4&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;
&lt;P&gt;......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset I want:&lt;/P&gt;
&lt;P&gt;seqn variable3 variable 4&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;
&lt;P&gt;......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 15:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/compare-two-datasets-and-create-a-new-dataset-that-only-has/m-p/670317#M23307</guid>
      <dc:creator>knighsson</dc:creator>
      <dc:date>2020-07-18T15:17:53Z</dc:date>
    </item>
    <item>
      <title>Need help with code of seperate variables with delimiter</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-help-with-code-of-seperate-variables-with-delimiter/m-p/670287#M23302</link>
      <description>&lt;P&gt;i have data set in note pad like that i want import into sas&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Car Make Model Type Origin Seat MRP Show Room Price Rate Star&lt;BR /&gt;Acura|MDX|SUV|Asia|All|$36,945|$33,337|3.5|&lt;BR /&gt;Acura|RSX Type S 2dr|Sedan|Asia|Front|$23,820|$21,761|2|&lt;/P&gt;&lt;P&gt;Those data have delimiter value of |&lt;/P&gt;&lt;P&gt;Expected result as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result&lt;BR /&gt;Car Make&amp;nbsp; Model&amp;nbsp; &amp;nbsp; Type&amp;nbsp; &amp;nbsp;Origin&amp;nbsp; Seat&amp;nbsp; &amp;nbsp; &amp;nbsp; MRP&amp;nbsp; &amp;nbsp; &amp;nbsp; Show Room Price Rate Star&lt;BR /&gt;Acura&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MDX&amp;nbsp; &amp;nbsp; &amp;nbsp; SUV&amp;nbsp; &amp;nbsp; Asia&amp;nbsp; &amp;nbsp; All&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$36,945&amp;nbsp; $33,337&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.5&lt;BR /&gt;Acura&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RSK&amp;nbsp; &amp;nbsp; &amp;nbsp; Sedan&amp;nbsp; &amp;nbsp;Asia&amp;nbsp; Front&amp;nbsp; &amp;nbsp; &amp;nbsp; $23,820 $21,761&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 10:48:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-help-with-code-of-seperate-variables-with-delimiter/m-p/670287#M23302</guid>
      <dc:creator>manilara44</dc:creator>
      <dc:date>2020-07-18T10:48:32Z</dc:date>
    </item>
    <item>
      <title>How to speed up multiple regressions in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-speed-up-multiple-regressions-in-SAS/m-p/670280#M23298</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem to speed up my regressions in SAS using the macro below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to suppress the regression results in the results window, however, the Noprint function does not work here because it sends no output to ODS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried "ODS select none" as well as "ODS exclude none", but the results window then still appears. I would be very glad if someone could help me out. Any ideas on how to speed up the macro (multiple regressions) below or on how to suppress the output in the results window while still calculating the output tables are highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you a lot for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;STRONG&gt;*Macro to run several regressions using a loop (based on a startyear);&lt;/STRONG&gt;
%Macro Startermacro (window=,dataset_in=);
	%do startyear = 2003 %to %eval(2014 - &amp;amp;window. + 1);

&lt;STRONG&gt;*Run a regression of earnings on lagged variables and save the output statistics;&lt;/STRONG&gt;
proc reg data=&amp;amp;dataset_in. ;
	model earn_w = L1_earn_w L1_negE_w L1_NExE_w;
	where &amp;amp;startyear. &amp;lt;= HouFyear &amp;lt;= %eval(&amp;amp;startyear. + &amp;amp;window. - 1);
	ODS OUTPUT parameterestimates = par_est_&amp;amp;startyear.;
run; quit;

&lt;STRONG&gt;*Write the start year in a separate column;&lt;/STRONG&gt; 
		data par_est_&amp;amp;startyear.;
			set par_est_&amp;amp;startyear.;
			startyear = %eval(&amp;amp;startyear. + &amp;amp;window. - 1);
		run;

&lt;STRONG&gt;*Combine all outputs to one file;&lt;/STRONG&gt;
	data combined_par_est;
		set par_est_:;
	run;
%end;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 09:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-speed-up-multiple-regressions-in-SAS/m-p/670280#M23298</guid>
      <dc:creator>Tim_sas_</dc:creator>
      <dc:date>2020-07-18T09:20:12Z</dc:date>
    </item>
    <item>
      <title>help please :) adding confidence intervals to SGplot after repeated measures Proc Glm?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-please-adding-confidence-intervals-to-SGplot-after-repeated/m-p/670226#M23295</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you kindly help me?&lt;/P&gt;&lt;P&gt;I would like to add confidence intervals to a graph following proc GLM with data from multiple timepoints.&lt;/P&gt;&lt;P&gt;I calculated the means in each group, but not CIs. Could you teach me how to calculate and graph the CIs?&lt;/P&gt;&lt;P&gt;Or would it be easier to use a mixed model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data, code, and sample graph are below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=exercise;
  class exertype;
  model time1 time2 time3 = exertype;
  repeated time 3 ;
  lsmeans exertype / out=means;
run;
quit;
proc print data=means;
run;

proc sgplot data=means;
	series x=_name_ y=lsmean / group=exertype;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter dijitContentPaneSingleChild"&gt;&lt;DIV class="dijitBorderContainer dijitContainer row-fluid dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter dijitContentPaneSingleChild"&gt;&lt;DIV class="tabs dijitBorderContainer dijitContainer dojoDndTarget sasStudioTabsParentContainer dijitLayoutContainer dojoDndContainerOver"&gt;&lt;DIV class="dijitTabContainer dijitTabContainerTop dijitContainer dijitLayoutContainer tabStrip-disabled sasStudioTabsTabContainer sasStudioTabsTabContainerVertical sasStudioTabsTop dijitBorderContainer-child dijitBorderContainer-dijitTabContainerTop dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="dijitTabPaneWrapper dijitTabContainerTop-container dijitAlignCenter"&gt;&lt;DIV class="dijitTabContainerTopChildWrapper dijitVisible"&gt;&lt;DIV class="dijitBorderContainer dijitContainer sasStudioTabsTabContainerChild dijitTabPane dijitTabContainerTop-child dijitTabContainerTop-dijitBorderContainer dijitLayoutContainer"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dojoDndTarget dijitBorderContainer-child dijitBorderContainer-dijitBorderContainer dijitBorderContainerPane dijitAlignCenter dijitLayoutContainer dojoDndContainerOver"&gt;&lt;DIV class="dijitTabContainer dijitTabContainerTop dijitContainer dijitLayoutContainer tabStrip-disabled sasSuiteTabs dijitBorderContainer-child dijitBorderContainer-dijitTabContainerTop dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="dijitTabPaneWrapper dijitTabContainerTop-container dijitAlignCenter"&gt;&lt;DIV class="dijitTabContainerTopChildWrapper dijitVisible"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitTabPane dijitTabContainerTop-child dijitTabContainerTop-dijitBorderContainer dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter ods_1142a971-9ef5-4639-a28f-9cd1ac2fc915"&gt;&lt;DIV class="c body"&gt;&lt;DIV class="c"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GabbyJ_0-1595019319897.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47262i0EE5AFF8BFD2B22B/image-size/medium?v=1.0&amp;amp;px=400" title="GabbyJ_0-1595019319897.png" alt="GabbyJ_0-1595019319897.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="dijitContentPane statusBar dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignBottom"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample data:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data exercise;
  input id exertype diet time1 time2 time3;
cards;
1     1         1       85       85       88
2     1         1       90       92       93
3     1         1       97       97       94
4     1         1       80       82       83
5     1         1       91       92       91
6     1         2       83       83       84
7     1         2       87       88       90
8     1         2       92       94       95
9     1         2       97       99       96
10    1         2      100       97      100
11    2         1       86       86       84
12    2         1       93      103      104
13    2         1       90       92       93
14    2         1       95       96      100
15    2         1       89       96       95
16    2         2       84       86       89
17    2         2      103      109       90
18    2         2       92       96      101
19    2         2       97       98      100
20    2         2      102      104      103
21    3         1       93       98      110
22    3         1       98      104      112
23    3         1       98      105       99
24    3         1       87      132      120
25    3         1       94      110      116
26    3         2       95      126      143
27    3         2      100      126      140
28    3         2      103      124      140
29    3         2       94      135      130
30    3         2       99      111      150
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 21:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-please-adding-confidence-intervals-to-SGplot-after-repeated/m-p/670226#M23295</guid>
      <dc:creator>GabbyJ</dc:creator>
      <dc:date>2020-07-17T21:00:45Z</dc:date>
    </item>
    <item>
      <title>Conversion of a table in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Conversion-of-a-table-in-SAS/m-p/670201#M23289</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a very basic question regarding a table where I would like to change the order of rows and columns.&lt;/P&gt;&lt;P&gt;The problem is illustrated by the picture below. I have a SAS table in the upper format and would like to transform it to the format describes below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be very glad if some could help me out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pic.JPG" style="width: 611px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47260iB80798CC93262B9E/image-size/large?v=1.0&amp;amp;px=999" title="Pic.JPG" alt="Pic.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 19:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Conversion-of-a-table-in-SAS/m-p/670201#M23289</guid>
      <dc:creator>Tim_sas_</dc:creator>
      <dc:date>2020-07-17T19:59:37Z</dc:date>
    </item>
    <item>
      <title>PROC SQL help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-help/m-p/670178#M23286</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need some help with a proc SQL problem. Take the sample data below:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Table 1&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Code&amp;nbsp; &amp;nbsp; &amp;nbsp; Description&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Y&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Z&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Table 2&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Code&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&lt;/P&gt;
&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I want to pull all the observations from Table 2 that have a matching Code from Table 1 (so this would be Code 2 and Code 3).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to do this in SAS (I presume it is easiest with proc SQL but if it works with a data step that is great too)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 17:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-help/m-p/670178#M23286</guid>
      <dc:creator>marleeakerson</dc:creator>
      <dc:date>2020-07-17T17:35:28Z</dc:date>
    </item>
    <item>
      <title>delete lines based on a character (SAS 9.4)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/delete-lines-based-on-a-character-SAS-9-4/m-p/670103#M23270</link>
      <description>&lt;P&gt;Hi! I would like to delete some lines from my data. See the print screen for an overview.&lt;/P&gt;&lt;P&gt;I want to remove the lines from the cows who have a chain_number starting with an "N". How can I ask this to SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annie_Fréchette_0-1594989099500.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47249i365114238C6389C0/image-size/medium?v=1.0&amp;amp;px=400" title="Annie_Fréchette_0-1594989099500.png" alt="Annie_Fréchette_0-1594989099500.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 12:32:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/delete-lines-based-on-a-character-SAS-9-4/m-p/670103#M23270</guid>
      <dc:creator>Annie_Fréchette</dc:creator>
      <dc:date>2020-07-17T12:32:33Z</dc:date>
    </item>
    <item>
      <title>How do I get variable values to show up in output? SAS 9.4</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-get-variable-values-to-show-up-in-output-SAS-9-4/m-p/670056#M23266</link>
      <description>&lt;P&gt;I know there has to be a simple solution here. It prints out everything I want except for the values.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value id = 'ID';
value Diagnosis 0 = 'n/a' 
				1 = 'LTBI'
    			2 = 'ACTIVE' 
				3 = 'NOT TB';
value PPD 		0 = 'n/a' 
				1= 'Positive' 
				2= 'Negative';
value CXR 		0 = 'n/a' 
				1 = 'WNL' 
				2 = 'Abnormal';
value Treatment 0 = 'n/a' 
				1 = 'Yes' 
				2 = 'No' 
				3 = 'Pending';
				run;
Data Notes;
input ID Diagnosis PPD CXR Treatment;
datalines;
1 1 1 1 1
2 1 1 1 1
3 1 1 1 1
4 1 1 1 1
5 2 1 2 2
6 1 1 1 1
7 1 1 1 1
8 0 0 0 0
9 1 1 1 1
10 1 1 1 1
11 2 1 2 2
12 1 2 0 0
13 3 2 0 0
14 3 2 0 0
15 3 2 0 0
16 2 1 2 2
17 1 1 1 1
18 3 2 0 0
19 3 2 0 0
20 1 1 1 1
21 1 1 1 1
22 3 2 0 1
23 1 1 1 0
24 3 2 0 1
25 3 2 0 0
26 1 1 1 0
27 3 2 0 1
28 3 2 0 0
29 3 2 0 0
30 3 2 0 0
31 3 2 0 0
32 2 1 2 3
33 3 2 0 0
34 1 1 1 3
35 2 1 2 2
36 0 0 0 0
37 3 2 0 0
38 3 2 0 0
;
run;
format id id. diagnosis diagnosis. ppd ppd. cxr cxr. treatment treatment.;
proc print data = notes;
var diagnosis ppd cxr treatment;
title 'Chart';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Jul 2020 04:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-get-variable-values-to-show-up-in-output-SAS-9-4/m-p/670056#M23266</guid>
      <dc:creator>jranta</dc:creator>
      <dc:date>2020-07-17T04:55:19Z</dc:date>
    </item>
    <item>
      <title>Counting observations with a specific value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Counting-observations-with-a-specific-value/m-p/669982#M23238</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
&lt;P&gt;I have a pretty basic question.&lt;/P&gt;
&lt;P&gt;I have a panel dataset, including weekly data on several firms. I have a variable "Week_Volume". I want to know for each firm (identifier variable:&amp;nbsp;brand_name) how many times (i.e., for how many weeks) "Week_Volume" equals zero.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please recommend an easy solution for this? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 20:35:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Counting-observations-with-a-specific-value/m-p/669982#M23238</guid>
      <dc:creator>AlG</dc:creator>
      <dc:date>2020-07-16T20:35:13Z</dc:date>
    </item>
    <item>
      <title>Identifying missing data values in data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Identifying-missing-data-values-in-data-set/m-p/669796#M23228</link>
      <description>&lt;OL&gt;&lt;LI&gt;For the missing values in cholesterol. The code is not working for the output variable chol_status. Each time I run the code the output variable chol_status displays “Safe” instead of a blank space.&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI&gt;To identify missing values I thought you used:&amp;nbsp; if variable-name=. then variable-name=. ; &amp;nbsp;&amp;nbsp;or&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if missing(variable-name) then variable-name=. ;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What would be the correct code for missing values for ?&lt;/P&gt;&lt;PRE&gt;data results;&lt;BR /&gt;	set "/home/u44696116/TheCut/input/input44.sas7bdat";&lt;BR /&gt;	length chol_status $ 15;&lt;BR /&gt;	drop bp_status weight_status smoking_status;&lt;BR /&gt;	&lt;FONT color="#FF0000"&gt;if cholesterol=. then chol_status=. ;&lt;/FONT&gt;&lt;BR /&gt;			if cholesterol&amp;lt;200 then chol_status="Safe";&lt;BR /&gt;			else if cholesterol&amp;lt;=239 then chol_status="High-Borderline";&lt;BR /&gt;			else if cholesterol&amp;gt;=240 then chol_status="High";		&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;SAS ANSWER&lt;/P&gt;&lt;PRE&gt;data out;&lt;BR /&gt;	set "/home/u44696116/TheCut/input/input44.sas7bdat";&lt;BR /&gt;	length chol_status $ 15;&lt;BR /&gt;	drop bp_status weight_status smoking_status;&lt;BR /&gt;	&lt;FONT color="#00FF00"&gt;if cholesterol ne . then do;&lt;/FONT&gt;&lt;BR /&gt;	                if cholesterol &amp;lt; 200 then chol_status='Safe';&lt;BR /&gt;			else if cholesterol &amp;lt;=239 then chol_status='High-Borderline';&lt;BR /&gt;			else if cholesterol &amp;gt;=240 then chol_status='High';&lt;BR /&gt;		end;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 03:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Identifying-missing-data-values-in-data-set/m-p/669796#M23228</guid>
      <dc:creator>armoore</dc:creator>
      <dc:date>2020-07-16T03:49:49Z</dc:date>
    </item>
    <item>
      <title>Removing duplicate dates from observation, and count number of dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Removing-duplicate-dates-from-observation-and-count-number-of/m-p/669748#M23224</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;infile datalines dsd dlm=',' ;&lt;BR /&gt;input name :$3. id :$3. date1 :MMDDYY10. date2 :MMDDYY10. date3 :MMDDYY10. date4 :MMDDYY10. date5 :MMDDYY10.;&lt;BR /&gt;datalines;&lt;BR /&gt;abc,010,01/10/2017,03/20/2016,.,01/10/2017,.&lt;BR /&gt;def,023,.,.,04/20/2018,.,04/20/2018&lt;BR /&gt;pqr,125,08/10/2013,.,05/20/2012,.,.&lt;BR /&gt;xyz,200,01/12/2016,01/21/2016,05/10/2017,09/01/2018,03/02/2016&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have an output from the above that will look like the output of the following dataset. Please note that there will be no duplicate dates for an observation, and the remaining dates will be sorted and shifted to the left columns in ascending or descending order. Missing values will be shifted to the right columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would also like to add a column that will count the number of dates of each observation. Suppose number of dates for abc is 2, number of dates for def is 1, number of dates for pqr is 2, and number of dates for xyz is 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;infile datalines dsd dlm=',' ;&lt;BR /&gt;input name :$3. id :$3. date1 :MMDDYY10. date2 :MMDDYY10. date3 :MMDDYY10. date4 :MMDDYY10. date5 :MMDDYY10.;&lt;BR /&gt;datalines;&lt;BR /&gt;abc,010,03/20/2016,01/10/2017,.,.,.&lt;BR /&gt;def,023,04/20/2018,.,.,.,.,.&lt;BR /&gt;pqr,125,05/20/2012,08/10/2013,.,.,.&lt;BR /&gt;xyz,200,01/12/2016,01/21/2016,03/02/2016,05/10/2017,09/01/2018&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 23:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Removing-duplicate-dates-from-observation-and-count-number-of/m-p/669748#M23224</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2020-07-15T23:50:38Z</dc:date>
    </item>
    <item>
      <title>SAS date variable help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-date-variable-help/m-p/669727#M23217</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help converting numeric variable to a usable SAS date variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a snippet of the data:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Date1&lt;/P&gt;
&lt;P&gt;19370215&lt;BR /&gt;19370215&lt;BR /&gt;19370215&lt;BR /&gt;19700210&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and I want the data to look like this&lt;/P&gt;
&lt;P&gt;Date2&lt;/P&gt;
&lt;P&gt;1937/02/15&lt;BR /&gt;1937/02/15&lt;BR /&gt;1937/02/15&lt;BR /&gt;1970/02/10&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I am using this code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;Date2 = Input( Put( Date1, z8.), mmddyy10.);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I keep getting this note&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;NOTE: Invalid argument to function INPUT at line 30 column 14.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;And Date2 column is completely blank.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 21:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-date-variable-help/m-p/669727#M23217</guid>
      <dc:creator>marleeakerson</dc:creator>
      <dc:date>2020-07-15T21:40:17Z</dc:date>
    </item>
    <item>
      <title>Error from code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-from-code/m-p/669564#M23213</link>
      <description>&lt;P&gt;Hi! I am struggling with SAS syntax error diagnosis. I am new to SAS and I have been trying hard to resolve simple errors but I still cant. Any help with the below error from my proc procedure please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; create table Co_STLoc as&lt;BR /&gt;&amp;nbsp; &amp;nbsp; select a.*, b.St_fips AS Client_state, co_fips AS G132&lt;BR /&gt;&amp;nbsp; &amp;nbsp; from Co_ST_Out as a left join Fipsmod1 as b&lt;BR /&gt;&amp;nbsp; &amp;nbsp; on a.State = b.State AND a.county = b.county;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ERROR: Expression using equals (=) has components that are of different data types.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 16:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-from-code/m-p/669564#M23213</guid>
      <dc:creator>adzoyi</dc:creator>
      <dc:date>2020-07-15T16:20:18Z</dc:date>
    </item>
    <item>
      <title>Leading zeros</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Leading-zeros/m-p/669555#M23210</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need some help with important an excel document where some observations have leading zeros and some do not. For example, take the following sample dataset:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Variable&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;002&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;617&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;012&lt;/P&gt;
&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;G317&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I import this into sas while keeping the leading zeros?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 16:06:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Leading-zeros/m-p/669555#M23210</guid>
      <dc:creator>marleeakerson</dc:creator>
      <dc:date>2020-07-15T16:06:15Z</dc:date>
    </item>
    <item>
      <title>calculate a difference between two days; SAS 9.4</title>
      <link>https://communities.sas.com/t5/New-SAS-User/calculate-a-difference-between-two-days-SAS-9-4/m-p/669425#M23203</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I wondering if there is a way to calculate the number of days between first jr test and second test, and between second and third, etc. Knowing that some jrtest will be ".".&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input cow$ jrtest:ddmmyy10. scc;
cards;
daisy 10/7/2017 200
maggy 10/7/2017 120
lily 10/7/2017 98
daisy . 89
maggy 11/8/2017 120
lily 11/8/2017 98
daisy 13/9/2017 102
maggy 13/9/2017 154
lily 13/9/2017 232
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not sure if it helps, but after that I'm transposin my jrtest and I don't want to keep the dates so I'm going with this&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have;
format jrtest date9.;
by cow jrtest;
run;

data want;
set have;
by cow jrtest;
retain no_test;
if first.cow then no_test=1;
else no_test+1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So, I want to know how many days are between test 1 and test 2, test 2 and test 3 etc.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 12:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/calculate-a-difference-between-two-days-SAS-9-4/m-p/669425#M23203</guid>
      <dc:creator>Annie_Fréchette</dc:creator>
      <dc:date>2020-07-15T12:23:42Z</dc:date>
    </item>
    <item>
      <title>Help with data stratification</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-data-stratification/m-p/669269#M23199</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need figuring out the code to stratify my data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, take this sample data:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Index&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;B&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;B&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;
&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I am trying to make two output data sets&amp;nbsp; -&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;One table where it only contains the rows where the ID has both A and B Index&lt;/LI&gt;
&lt;LI&gt;One table where it only contains the rows where the ID has both A and C Index&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Does anyone have any ideas?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 19:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-data-stratification/m-p/669269#M23199</guid>
      <dc:creator>marleeakerson</dc:creator>
      <dc:date>2020-07-14T19:01:27Z</dc:date>
    </item>
    <item>
      <title>How to KEEP duplicates in Proc SQL, aggregating for quarter</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-KEEP-duplicates-in-Proc-SQL-aggregating-for-quarter/m-p/669093#M23195</link>
      <description>&lt;P&gt;I am trying to aggregate data for the quarter from months.&lt;/P&gt;&lt;P&gt;Data is quite simple has Type, Code and then values (revenue, quantity, label etc.).&lt;/P&gt;&lt;P&gt;Occasionally some lines&amp;nbsp; in month 1 match exactly lines in month 2 or month 3 of the quarter. I just discovered that in that case data from one of the month is dropped ( i.e. duplicates are eliminated). I need to keep all data! Can this be done with proc sql?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current program in the nutshell:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table Q as&lt;/P&gt;&lt;P&gt;select type, code, sum (revenue) as Revenue, sum(quantity) as Quantity, label&lt;/P&gt;&lt;P&gt;from&amp;nbsp;&lt;/P&gt;&lt;P&gt;(select * from month1&amp;nbsp; union&lt;/P&gt;&lt;P&gt;&amp;nbsp;select * from month2 union&lt;/P&gt;&lt;P&gt;select&amp;nbsp; * from month3)&lt;/P&gt;&lt;P&gt;where code is not null&lt;/P&gt;&lt;P&gt;group by type, code, label,&lt;/P&gt;&lt;P&gt;order by type , code;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 06:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-KEEP-duplicates-in-Proc-SQL-aggregating-for-quarter/m-p/669093#M23195</guid>
      <dc:creator>User12321</dc:creator>
      <dc:date>2020-07-14T06:01:10Z</dc:date>
    </item>
    <item>
      <title>title statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/title-statement/m-p/669057#M23190</link>
      <description>&lt;P&gt;I am confused about this question, why does the title statement&amp;nbsp;&lt;SPAN&gt;t for the last PROC PRINT step cancel all the higher TITLE&lt;/SPAN&gt;&lt;EM&gt;n&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;statements? Thanks!&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jianan_luna_0-1594691993069.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47111iBF17B4FBD00511F8/image-size/medium?v=1.0&amp;amp;px=400" title="Jianan_luna_0-1594691993069.png" alt="Jianan_luna_0-1594691993069.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 02:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/title-statement/m-p/669057#M23190</guid>
      <dc:creator>Jianan_luna</dc:creator>
      <dc:date>2020-07-14T02:00:43Z</dc:date>
    </item>
    <item>
      <title>create a variable from a date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-a-variable-from-a-date/m-p/668793#M23182</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I want to create a variable who goes frome 1 to 12 based on the date of a test (like first test of the year, second test of the year etc) Here is a little example of what I want it to look like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annie_Fréchette_0-1594643534926.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47085i2B50E299EEE6A7F1/image-size/medium?v=1.0&amp;amp;px=400" title="Annie_Fréchette_0-1594643534926.png" alt="Annie_Fréchette_0-1594643534926.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyone can teach me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Annie&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 12:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-a-variable-from-a-date/m-p/668793#M23182</guid>
      <dc:creator>Annie_Fréchette</dc:creator>
      <dc:date>2020-07-13T12:34:03Z</dc:date>
    </item>
    <item>
      <title>Macro variable while input to data cause zero missing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro-variable-while-input-to-data-cause-zero-missing/m-p/668754#M23180</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I meet a problem.&lt;/P&gt;
&lt;P&gt;while I want to insert a marco variable with zero at the front&amp;nbsp; &amp;nbsp;into a data.&lt;/P&gt;
&lt;P&gt;I found that the zero will be clean.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because the p&lt;SPAN&gt;rocess of insert marco variable will change type by : marco variable-&amp;gt; num -&amp;gt; char.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And it will case the zero missing.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;%let i = 007;

data a;
ax=put(&amp;amp;i. , $4);
run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*/output: 7 /*&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 08:02:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro-variable-while-input-to-data-cause-zero-missing/m-p/668754#M23180</guid>
      <dc:creator>Sas_user_14</dc:creator>
      <dc:date>2020-07-13T08:02:24Z</dc:date>
    </item>
    <item>
      <title>About case sensitive</title>
      <link>https://communities.sas.com/t5/New-SAS-User/About-case-sensitive/m-p/668676#M23173</link>
      <description>&lt;P&gt;When I refer column_name in statement like where and var, sometimes I ignore the font format. Is it matter to ignore the upper case or lower case when I reference the column name?&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 19:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/About-case-sensitive/m-p/668676#M23173</guid>
      <dc:creator>Jianan_luna</dc:creator>
      <dc:date>2020-07-12T19:53:45Z</dc:date>
    </item>
    <item>
      <title>about the usage of table optoin</title>
      <link>https://communities.sas.com/t5/New-SAS-User/about-the-usage-of-table-optoin/m-p/668675#M23172</link>
      <description>&lt;P&gt;when I learn programming 1 course, some statement use&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc freq data=;&lt;/P&gt;&lt;P&gt;table options;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;tables options;&lt;/P&gt;&lt;P&gt;what's the difference between table and tables?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 19:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/about-the-usage-of-table-optoin/m-p/668675#M23172</guid>
      <dc:creator>Jianan_luna</dc:creator>
      <dc:date>2020-07-12T19:48:41Z</dc:date>
    </item>
    <item>
      <title>Exporting file from SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Exporting-file-from-SAS/m-p/668606#M23155</link>
      <description>&lt;P&gt;When I learn exporting file from SAS, I have some questions about some statements. Like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;ods noproctitle; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;options orientation=landscape; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;ods excel file=; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;when we add those statement at the beginning of the code. We always need add some statements like:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;ods proctitle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp;&lt;/SPAN&gt;options orientation=portrait;&lt;/P&gt;&lt;P&gt;ods excel close; at the end of program. Why we need to add those statements at end of the program? Thanks so much&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 21:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Exporting-file-from-SAS/m-p/668606#M23155</guid>
      <dc:creator>Jianan_luna</dc:creator>
      <dc:date>2020-07-11T21:04:09Z</dc:date>
    </item>
    <item>
      <title>Exporting excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Exporting-excel/m-p/668605#M23154</link>
      <description>&lt;P&gt;When I do the quiz from SAS programming 1 course, I cannot make sense this question. Can anyone help me this question?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jianan_luna_0-1594501015059.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47070i938B21F97060E8DF/image-size/medium?v=1.0&amp;amp;px=400" title="Jianan_luna_0-1594501015059.png" alt="Jianan_luna_0-1594501015059.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 20:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Exporting-excel/m-p/668605#M23154</guid>
      <dc:creator>Jianan_luna</dc:creator>
      <dc:date>2020-07-11T20:58:34Z</dc:date>
    </item>
    <item>
      <title>HELP: No columns show in my dependent variable when running a graph.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/HELP-No-columns-show-in-my-dependent-variable-when-running-a/m-p/668579#M23138</link>
      <description>&lt;P&gt;Please help me!! I am a beginner student to SAS and need help with running a graph. Every time I try it says there's no columns in my dependent variable section. I will attach the code that I get when I upload my .csv file into SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 17:59:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/HELP-No-columns-show-in-my-dependent-variable-when-running-a/m-p/668579#M23138</guid>
      <dc:creator>tessa3</dc:creator>
      <dc:date>2020-07-11T17:59:39Z</dc:date>
    </item>
    <item>
      <title>SAS UniversityEdition - Macro for PISA</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-UniversityEdition-Macro-for-PISA/m-p/668499#M23132</link>
      <description>&lt;P&gt;Hi everyone, can I use macros in SAS University Edition? I am in educational research, PISA 2015 and 2018, and I want to use the macro that the OECD provides to deal with the 10 plausible values, and to make multilevel models.&amp;nbsp;&amp;nbsp;I have experience in SPSS, but macros in SPSS do not work for me, or I do not know how to make them work, and there are only 5 plausible values.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.oecd.org/pisa/data/httpoecdorgpisadatabase-instructions.htm" target="_blank"&gt;https://www.oecd.org/pisa/data/httpoecdorgpisadatabase-instructions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks, Walter&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 23:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-UniversityEdition-Macro-for-PISA/m-p/668499#M23132</guid>
      <dc:creator>rojouno</dc:creator>
      <dc:date>2020-07-10T23:51:24Z</dc:date>
    </item>
    <item>
      <title>struggling with dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/struggling-with-dates/m-p/668435#M23119</link>
      <description>&lt;P&gt;Hi! I'm having some issues with a variable. Test_date is , when I double click ont it, a character type. But it's a date. Ex:18-12-2017. I try to convert it in a date format (DDMMYY10.;) but it doesn't work.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.f2sd;
set work.f2sd;
informat Test_date DDMMYY10.;
format Test_date DDMMYY10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is my log:&lt;/P&gt;&lt;P&gt;326 data work.f2sd;&lt;BR /&gt;327 set work.f2sd;&lt;BR /&gt;328 informat Test_date $DDMMYY10.;&lt;BR /&gt;----------&lt;BR /&gt;48&lt;BR /&gt;ERROR 48-59: Le(la) informat $DDMMYY est introuvable ou n'a pas pu être chargé(e).&lt;/P&gt;&lt;P&gt;329 format Test_date $DDMMYY10.;&lt;BR /&gt;----------&lt;BR /&gt;48&lt;BR /&gt;ERROR 48-59: Le(la) format $DDMMYY est introuvable ou n'a pas pu être chargé(e).&lt;/P&gt;&lt;P&gt;330 run;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.F2SD may be incomplete. When this step was stopped there were 0&lt;BR /&gt;observations and 8 variables.&lt;BR /&gt;WARNING: Table WORK.F2SD non remplacée car cette étape a été interrompue.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help?&lt;/P&gt;&lt;P&gt;And I have a second question: How could I code for this steps:&lt;/P&gt;&lt;P&gt;First, class the dates from older to newer;&lt;/P&gt;&lt;P&gt;if date is before 31-01-2018, then delete this line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 18:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/struggling-with-dates/m-p/668435#M23119</guid>
      <dc:creator>Annie_Fréchette</dc:creator>
      <dc:date>2020-07-10T18:19:46Z</dc:date>
    </item>
    <item>
      <title>SAS university edition is not opening and showing some strange codes on my virtual machine</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-university-edition-is-not-opening-and-showing-some-strange/m-p/668431#M23118</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VirtualBox_SAS University Edition_10_07_2020_23_31_50.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47058i1A4904D35E992738/image-size/large?v=1.0&amp;amp;px=999" title="VirtualBox_SAS University Edition_10_07_2020_23_31_50.png" alt="VirtualBox_SAS University Edition_10_07_2020_23_31_50.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kindly help me resolve this issue&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 18:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-university-edition-is-not-opening-and-showing-some-strange/m-p/668431#M23118</guid>
      <dc:creator>VarshiRGK</dc:creator>
      <dc:date>2020-07-10T18:04:44Z</dc:date>
    </item>
    <item>
      <title>LIBNAME and CASLIB statements failing with ERROR in LIBNAME stmt and user param is invalid errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME-and-CASLIB-statements-failing-with-ERROR-in-LIBNAME-stmt/m-p/668408#M23116</link>
      <description>&lt;DIV class="sasSource"&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 libname seacoastlib odbc dsn="seacoast" user="myuser" pass="mypassword";&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: seacoastlib is not a valid SAS name.&lt;/DIV&gt;&lt;DIV class="sasError sapUiTreeNodeSelected"&gt;ERROR: Error in the LIBNAME statement.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running the statement below to connect to a SQL Server database through DSN and I get error "ERROR: seacoastlib is not a valid SAS name:&lt;/P&gt;&lt;P&gt;libname seacoastlib odbc dsn="seacoast" user="myuser" pass="mypassword";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another statement, almost the same, to a different DSN, all in the same ODBC.INI file; the only difference is that the other statement includes a schema.&lt;/P&gt;&lt;P&gt;libname etllib odbc dsn="etl" user="myuser" pass="mypassword" schema="myschema";&lt;/P&gt;&lt;P&gt;PS: this statement that executes resides in a file created a long time ago. Maybe some variable created that reside in the system somewhere. The one that fails was created today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have even tried&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;caslib seacoastlib datasource="seacoast" user="myuser" pass="mypassword" &lt;/PRE&gt;&lt;P&gt;What am I missing?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 16:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME-and-CASLIB-statements-failing-with-ERROR-in-LIBNAME-stmt/m-p/668408#M23116</guid>
      <dc:creator>thebugslayer</dc:creator>
      <dc:date>2020-07-10T16:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS university Edition not working on VirtualBox</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Re-SAS-university-Edition-not-working-on-VirtualBox/m-p/668241#M23109</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've got an HP laptop with windows 10 and it was running sas university real well, but now when told to put &lt;A href="http://localhost:10080" target="_blank"&gt;http://localhost:10080&lt;/A&gt;&amp;nbsp;into browser no window or error message.&lt;/P&gt;&lt;P&gt;Any troubleshoots or fixes you can give most appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 02:31:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Re-SAS-university-Edition-not-working-on-VirtualBox/m-p/668241#M23109</guid>
      <dc:creator>wprice165</dc:creator>
      <dc:date>2020-07-10T02:31:45Z</dc:date>
    </item>
    <item>
      <title>Comparing dates in a macro - help needed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Comparing-dates-in-a-macro-help-needed/m-p/668278#M23097</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am looking to be able to set a custom interval and then create month dummies for observations with a macro. I am running into problems with the comparison of dates. In addition to what is below, I have also tried using quotes around the macro date variables and using the %sysevalf-function with %if-%then-%else -structure (and both at the same time). In the %sysevalf-case the date comparison is just always true or false. Below is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%macro date_loop(start,end);
	data WORK.x7;
			set work.x99;
		   %let start=%sysfunc(inputn(&amp;amp;start,anydtdte9.));
		   %let end=%sysfunc(inputn(&amp;amp;end,anydtdte9.));
		   %let dif=%sysfunc(intck(month,&amp;amp;start,&amp;amp;end));
		     %do i=0 %to &amp;amp;dif;
					%let date=%sysfunc(intnx(month,&amp;amp;start,&amp;amp;i,b),date9.);
					%let date2=%sysfunc(intnx(month,&amp;amp;start,&amp;amp;i,e),date9.);
					if mydate1 &amp;lt;= &amp;amp;date2. AND mydate2 &amp;gt;= &amp;amp;date. then 
						%do;
							if employed = 'true' then p&amp;amp;i. = 1;
							if dummy = 'true' then p&amp;amp;i. = 1;
						%end;
					
					else %do;
							p&amp;amp;i. = 0;
						%end;
		     %end;
	 run;
%mend date_loop;


%date_loop(01jan2019,01jan2020);&lt;/PRE&gt;&lt;P&gt;which results in following errors&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT, IN, 
              LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=.  

ERROR 388-185: Expecting an arithmetic operator.

ERROR 76-322: Syntax error, statement will be ignored.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;I would be grateful for any help!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 07:46:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Comparing-dates-in-a-macro-help-needed/m-p/668278#M23097</guid>
      <dc:creator>tahos</dc:creator>
      <dc:date>2020-07-10T07:46:19Z</dc:date>
    </item>
    <item>
      <title>How to create an ods html output in SAS Studio?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-create-an-ods-html-output-in-SAS-Studio/m-p/668231#M23095</link>
      <description>&lt;P&gt;data sample;&lt;/P&gt;&lt;P&gt;input x y z;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;8.9 4.2 9.3&lt;/P&gt;&lt;P&gt;5.7 6.0 2.0&lt;/P&gt;&lt;P&gt;6.4 5.5 2.7&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;ods html body="e\&lt;FONT face="monospace" size="4"&gt;SASUniversityEdition\Myfolder\reg.htm”；&lt;/FONT&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: monospace; font-size: 110%; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.25em; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="monospace" size="4"&gt;proc reg data=sample;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="monospace" size="4"&gt;model y=x;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="monospace" size="4"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="monospace" size="4"&gt;quit;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="monospace" size="4"&gt;After my running the above program, the logo shows error: insuffient authorization to access/opt/sasinside/sasconfig....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="monospace" size="4"&gt;No body file; Html output will not be created.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="monospace" size="4"&gt;I don't know what is wrong with it? Can you help me? Thanks!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: monospace; font-size: 110%; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.25em; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But when running the above&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 00:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-create-an-ods-html-output-in-SAS-Studio/m-p/668231#M23095</guid>
      <dc:creator>Jfrank</dc:creator>
      <dc:date>2020-07-10T00:53:20Z</dc:date>
    </item>
    <item>
      <title>503 Service Unavailable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/503-Service-Unavailable/m-p/668208#M23092</link>
      <description>&lt;P&gt;Hello, is anyone having problems trying to start the JupyterLab Notebooks right now? Every time I go to the startup link for it, it shows:&lt;/P&gt;&lt;P&gt;'Service Unavailable&lt;/P&gt;&lt;P&gt;The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Apache Server at localhost Port 10080'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone else experiencing the same problem right now? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 22:49:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/503-Service-Unavailable/m-p/668208#M23092</guid>
      <dc:creator>rh3303</dc:creator>
      <dc:date>2020-07-09T22:49:57Z</dc:date>
    </item>
    <item>
      <title>File location?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/File-location/m-p/667889#M23078</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;I am learning SAS. I have created a library, I can't find where the physical location of the this library/ folder is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;GN&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 22:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/File-location/m-p/667889#M23078</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2020-07-08T22:20:43Z</dc:date>
    </item>
    <item>
      <title>ERROR 65-58: Name 'AMCOHORTS_01MAY2019_31MAR2020_MEDICAL' is too long for a SAS name in this context</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-65-58-Name-AMCOHORTS-01MAY2019-31MAR2020-MEDICAL-is-too/m-p/668091#M23074</link>
      <description>&lt;P&gt;Good afternoon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to export an excel file into SAS EG and I keep getting the above mentioned error message. Can anyone assist me? This is the code I am using.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* claims file name from AM From payer directory */
%LET claimsFile= \\Cifs2\pop_lab$\P4P\BCBSMA\FY20\Actively Managed\From BCBSMA\AMCohorts_01May2019_31Mar2020_medical.xlsx;
%LET claimsFileType= XLSX; 		/* Options: DLM, XLSX */
%LET claimsSheetname= AMCohorts_01May2019_31Mar2020_m;

LIBNAME EPICPAT odbc complete="driver=SQL Server; database=EPIC; server=PHSSQL2195" schema=PATIENT; /* dev server */

/*Cohort period*/
%let Beg_dt= '01MAY2019'D;
%LET End_dt = '30APR2020'D;
%LET HCPCS = hcpcs_proc_cd IN ('99281',' 99282', '99283', '99284', '99285');
%LET REV = revenue_cd IN ('450','451','452','456','459','981');

proc sql;
create table AMCohort as select
distinct *
from claimsfile.AMCohorts_01May2019_31Mar2020_medical
where &amp;amp;REV
and &amp;amp;HCPCS
;quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jul 2020 16:40:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-65-58-Name-AMCOHORTS-01MAY2019-31MAR2020-MEDICAL-is-too/m-p/668091#M23074</guid>
      <dc:creator>wheddingsjr</dc:creator>
      <dc:date>2020-07-09T16:40:31Z</dc:date>
    </item>
    <item>
      <title>SAS Date Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Date-Help/m-p/668078#M23071</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I have a very simple question using date variables but I can't seem to figure it out. I am working with a date variable in this format&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Date&lt;/P&gt;
&lt;P&gt;02/09/1996&lt;BR /&gt;02/09/1996&lt;BR /&gt;02/09/1996&lt;BR /&gt;06/19/1981&lt;BR /&gt;10/31/1954&lt;BR /&gt;10/09/1958&lt;BR /&gt;06/17/1960&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and I am trying to find all the variables where the Date is after October 1, 2019. So I am using this piece of code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if Date &amp;gt;= 10/01/2019&lt;BR /&gt;then Variable= "X";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I keep getting observations where the Date is before 10/01/2019 marked as "X".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 15:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Date-Help/m-p/668078#M23071</guid>
      <dc:creator>marleeakerson</dc:creator>
      <dc:date>2020-07-09T15:47:27Z</dc:date>
    </item>
    <item>
      <title>About the length of column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/About-the-length-of-column/m-p/667945#M23064</link>
      <description>&lt;P&gt;I took quiz from SAS programming 1, I think the length is 8. But the answer is 6. Could anyone help me about it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jianan_luna_0-1594266594877.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47030i993E33380DF22D25/image-size/medium?v=1.0&amp;amp;px=400" title="Jianan_luna_0-1594266594877.png" alt="Jianan_luna_0-1594266594877.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 03:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/About-the-length-of-column/m-p/667945#M23064</guid>
      <dc:creator>Jianan_luna</dc:creator>
      <dc:date>2020-07-09T03:50:02Z</dc:date>
    </item>
    <item>
      <title>small question relate to programming 1</title>
      <link>https://communities.sas.com/t5/New-SAS-User/small-question-relate-to-programming-1/m-p/667926#M23062</link>
      <description>&lt;P&gt;1. When I do the practice in programming 1:essentials, some statements use the NODUPRECS statement other than the NODUPKEY statement. What's the difference between those two?&lt;/P&gt;&lt;P&gt;2. Some questions ask for formatting commas with decimal places. But I don't know how to decide the proper width of length. Can I round it? An example like&amp;nbsp;&lt;STRONG&gt;comma6.,&amp;nbsp;&lt;/STRONG&gt;what does 6 stand for?&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. I saw some questions use " ", some use '', is there any difference?&lt;/P&gt;&lt;P&gt;4. one question ask for "&lt;SPAN&gt;Write a DATA step to read the&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pg1.np_species&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;table and create a new table named&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;fox&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;&lt;SPAN&gt;: If you are using SAS Studio, try creating&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;fox&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;as a permanent table in the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;EPG1V2/output&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;folder." But there is no answer for libname statement. I am not sure whether it's correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class="language-sas"&gt;libname out "path-to-EPG1V2/output.fox";
data fox;
    set pg1.np_species;
    where Category='Mammal' and upcase(Common_Names) like '%FOX%' 
        and upcase(Common_Names) not like '%SQUIRREL%';    
    drop Category Record_Status Occurrence Nativeness;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks so much!&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;</description>
      <pubDate>Thu, 09 Jul 2020 01:08:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/small-question-relate-to-programming-1/m-p/667926#M23062</guid>
      <dc:creator>Jianan_luna</dc:creator>
      <dc:date>2020-07-09T01:08:40Z</dc:date>
    </item>
    <item>
      <title>Proc SQL Count help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-SQL-Count-help/m-p/667773#M23058</link>
      <description>&lt;P&gt;hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have a very basic proc SQL question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What should the syntax be to count the number of different observations in a variable? For instance in the table below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp;Variable&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Y&lt;/P&gt;
&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How would I find the total count of X and Y appearances in the "Variable" column using proc SQL?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 16:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-SQL-Count-help/m-p/667773#M23058</guid>
      <dc:creator>marleeakerson</dc:creator>
      <dc:date>2020-07-08T16:13:11Z</dc:date>
    </item>
    <item>
      <title>Base SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Base-SAS/m-p/667626#M23049</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;"Exclude all variables that begin with "&lt;/SPAN&gt;&lt;STRONG&gt;ex"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;from&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;results.nomatch08&lt;/STRONG&gt;&lt;SPAN&gt;.".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i have a question like this. How do i execute it ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 04:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Base-SAS/m-p/667626#M23049</guid>
      <dc:creator>Raj00007</dc:creator>
      <dc:date>2020-07-08T04:43:21Z</dc:date>
    </item>
    <item>
      <title>Split single colum data into multiple column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Split-single-colum-data-into-multiple-column/m-p/667601#M23043</link>
      <description>&lt;P&gt;I have follwoing dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;infile datalines dsd dlm=',' ;&lt;BR /&gt;input name :$3. id :$3. reg_dates :MMDDYY10. test_dates :MMDDYY10.;&lt;BR /&gt;datalines;&lt;BR /&gt;abc,010,01/10/2017,01/20/2017&lt;BR /&gt;abc,010,01/10/2017,05/12/2017&lt;BR /&gt;abc,010,08/01/2019,08/13/2019&lt;BR /&gt;abc,010,10/02/2018,10/09/2018&lt;BR /&gt;def,023,02/11/2017,02/14/2017&lt;BR /&gt;def,023,07/03/2016,07/30/2016&lt;BR /&gt;def,023,11/20/2017,11/26/2017&lt;BR /&gt;def,023,11/20/2017,04/20/2018&lt;BR /&gt;def,023,06/02/2017,07/02/2017&lt;BR /&gt;pqr,125,05/10/2013,05/20/2013&lt;BR /&gt;xyz,200,09/12/2015,09/18/2015&lt;BR /&gt;xyz,200,01/12/2016,11/22/2017&lt;BR /&gt;xyz,200,01/12/2016,01/21/2016&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that most of the subjects have multiple reg_dates and test_dates. How can I split the dates into multiple column. Like, reg_date1, reg_date2, reg_date3 . . . and also test_date1, test_date2 and so on.&lt;/P&gt;&lt;P&gt;So, the column of the output dataset will be like below.&lt;/P&gt;&lt;P&gt;name&amp;nbsp;&amp;nbsp; id&amp;nbsp;&amp;nbsp; reg_date1&amp;nbsp;&amp;nbsp; reg_date2&amp;nbsp;&amp;nbsp; reg_date3&amp;nbsp;&amp;nbsp; reg_date4&amp;nbsp;&amp;nbsp; reg_date5&amp;nbsp;&amp;nbsp; test_date1&amp;nbsp;&amp;nbsp; test_date2&amp;nbsp;&amp;nbsp; test_date3&amp;nbsp;&amp;nbsp; test_date4&amp;nbsp;&amp;nbsp; test_date5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately one subject will have one row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 00:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Split-single-colum-data-into-multiple-column/m-p/667601#M23043</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2020-07-08T00:36:27Z</dc:date>
    </item>
  </channel>
</rss>

