<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAS EG 6.1 Macro (SAS 9.4 Grid 2.0) in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345583#M22869</link>
    <description>&lt;P&gt;I see 20170328 (yesterday) and that moddt matches moddt2 in your picture so I'm not sure what I should be seeing there. It doesn't seem to match your description of what's happening.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest, using PUT to output the components of the day/month to the log to make sure they're being defined properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try the MDY suggestion, did that change anything?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2017 22:59:25 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-03-29T22:59:25Z</dc:date>
    <item>
      <title>SAS EG 6.1 Macro (SAS 9.4 Grid 2.0)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345568#M22865</link>
      <description>&lt;P&gt;I am bringing in the modified&amp;nbsp;date from the UNIX file system and the date populates fine as a variable.&amp;nbsp; When I tried to convert the text version of the variable (moddt2) to a macro, something goes wrong and the date is stored as '20170209' instead of '20170118.'&amp;nbsp; Can you tell me how I can get the macro facility to interpret the text correctly?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 22:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345568#M22865</guid>
      <dc:creator>alicia5882</dc:creator>
      <dc:date>2017-03-29T22:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 6.1 Macro (SAS 9.4 Grid 2.0)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345576#M22866</link>
      <description>&lt;P&gt;When you say Unix File System do you mean via a pipe or ls command? Or FINFO?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways, it may be easier to use the MDY() function instead to create the date rather than anydtdte input format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect that may help with some of the issues you're having.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;moddt=mdy(input(mon, best12.), input(day, best12.), yr1);
format moddt date9.;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PS In the future please paste the code directly into the forum rather than as an attachment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 22:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345576#M22866</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-29T22:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 6.1 Macro (SAS 9.4 Grid 2.0)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345577#M22867</link>
      <description>&lt;P&gt;Also, 20859 in SAS is February 9, 2017.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
date=20859;
format date date9.;
run;
proc print;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 22:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345577#M22867</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-29T22:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 6.1 Macro (SAS 9.4 Grid 2.0)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345580#M22868</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; Yes, I used pipe.&amp;nbsp; Here is the code.&amp;nbsp; You can see from the attached picture that the date variable is 20170118.&amp;nbsp; I placed the code in the attachment with the picture because they go together and I was not able to insert the picture here.&amp;nbsp; I don't know where the interpretation of 20170209 comes from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;48 %put &amp;amp;rundate ;&lt;/P&gt;&lt;P&gt;20170329&lt;/P&gt;&lt;P&gt;49 filename _dssinf1 pipe "cd '/hasaspmt/fraud/facility/';ls -la";&lt;/P&gt;&lt;P&gt;50&lt;/P&gt;&lt;P&gt;51 data dssinf1;&lt;/P&gt;&lt;P&gt;52 infile _dssinf1 pad recfm=v lrecl=1024 firstobs=2;&lt;/P&gt;&lt;P&gt;53&lt;/P&gt;&lt;P&gt;54 input filename $200.;&lt;/P&gt;&lt;P&gt;55 listinfo=compbl(filename);&lt;/P&gt;&lt;P&gt;56 rwa = scan(listinfo,1,' ');&lt;/P&gt;&lt;P&gt;57 nm = scan(listinfo,2,' ');&lt;/P&gt;&lt;P&gt;58 userid = scan(listinfo,3,' ');&lt;/P&gt;&lt;P&gt;59 dbs = scan(listinfo,4,' ');&lt;/P&gt;&lt;P&gt;60 size= scan(listinfo,5,' ');&lt;/P&gt;&lt;P&gt;61 mon= scan(listinfo,6,' ');&lt;/P&gt;&lt;P&gt;62 day= scan(listinfo,7,' ');&lt;/P&gt;&lt;P&gt;63 recnum=_n_;&lt;/P&gt;&lt;P&gt;64&lt;/P&gt;&lt;P&gt;65 yr=scan(listinfo,8,' ');&lt;/P&gt;&lt;P&gt;66 yr1=year(today());&lt;/P&gt;&lt;P&gt;67 moddt=input(catx('-',mon,day,yr1),anydtdte11.);&lt;/P&gt;&lt;P&gt;68 call symput('moddt',moddt);&lt;/P&gt;&lt;P&gt;69 format moddt yymmddn8.;&lt;/P&gt;&lt;P&gt;70 moddt2=put(moddt,yymmddn8.);&lt;/P&gt;&lt;P&gt;71 call symputx('moddt2',moddt2);&lt;/P&gt;&lt;P&gt;72 typ= scan(scan(listinfo,9,' '),2,.);&lt;/P&gt;&lt;P&gt;73 fnam = scan(listinfo,9,' ');&lt;/P&gt;&lt;P&gt;74 if scan(fnam,1,.) IN ('filtered_odm_dss','filtered_odm_ufe');&lt;/P&gt;&lt;P&gt;75&lt;/P&gt;&lt;P&gt;76 run;&lt;/P&gt;&lt;P&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;/P&gt;&lt;P&gt;68:22 72:35 74:16&lt;/P&gt;&lt;P&gt;NOTE: The infile _DSSINF1 is:&lt;/P&gt;&lt;P&gt;Pipe command="cd '/hasaspmt/fraud/facility/';ls -la"&lt;/P&gt;&lt;P&gt;NOTE: 72 records were read from the infile _DSSINF1.&lt;/P&gt;&lt;P&gt;The minimum record length was 59.&lt;/P&gt;&lt;P&gt;The maximum record length was 93.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DSSINF1 has 2 observations and 16 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.07 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;77 %put &amp;amp;moddt. &amp;amp;moddt2.;&lt;/P&gt;&lt;P&gt;20859 20170209&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 22:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345580#M22868</guid>
      <dc:creator>alicia5882</dc:creator>
      <dc:date>2017-03-29T22:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 6.1 Macro (SAS 9.4 Grid 2.0)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345583#M22869</link>
      <description>&lt;P&gt;I see 20170328 (yesterday) and that moddt matches moddt2 in your picture so I'm not sure what I should be seeing there. It doesn't seem to match your description of what's happening.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest, using PUT to output the components of the day/month to the log to make sure they're being defined properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try the MDY suggestion, did that change anything?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 22:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345583#M22869</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-29T22:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 6.1 Macro (SAS 9.4 Grid 2.0)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345586#M22870</link>
      <description>&lt;P&gt;Sorry, I've been working on this a few days and I made the correction manually yesterday, but I'll need to use this process again.&amp;nbsp; The date in the variable is correct as 20170328 but the macro keeps showing as 20170209, no matter what date the variable&amp;nbsp;I created it from holds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;moddt=input(catx(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'-'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,mon,day,yr1),&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;anydtdte11.&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;moddt2=put(moddt,&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;yymmddn8.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; symputx(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'moddt2'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,moddt2);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;%put &amp;amp;moddt. &amp;amp;moddt2.;&lt;/P&gt;&lt;P&gt;20859 20170209&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution you provided using 'mdy' instead causes the variable to display as missing '.' and creates the errors below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Invalid argument to function INPUT at line 52 column 11.&lt;/P&gt;&lt;P&gt;WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 23:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345586#M22870</guid>
      <dc:creator>alicia5882</dc:creator>
      <dc:date>2017-03-29T23:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 6.1 Macro (SAS 9.4 Grid 2.0)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345619#M22872</link>
      <description>&lt;P&gt;Pull out the CATX() portion and show what that looks like.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check = catx('-', mon day, yr1);&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 02:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345619#M22872</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-30T02:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 6.1 Macro (SAS 9.4 Grid 2.0)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345631#M22873</link>
      <description>&lt;P&gt;If you are trying to read the output of the LS command then you need to check if your system is modern enough to allow you to add options to the LS command to have it output the DATE in a consistent format. &amp;nbsp;Otherwise the default in Unix is to use different formats to displaying the data depending on how old the file is. &amp;nbsp;It will show just the month day and year for files that are more than 6 months old and show the month day and time for files that are less than 6 months old.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;gt;ls -l xx.*
-rw-rw-r-- 1 user group 695 Dec 14 22:03 xx.sas
-rw-rw-r-- 1 user group  82 Feb 27  2016 xx.tst

&amp;gt;ls -l --full-time xx.*
-rw-rw-r-- 1 user group 695 2016-12-14 22:03:02.629038000 -0500 xx.sas
-rw-rw-r-- 1 user group  82 2016-02-27 15:32:41.805886000 -0500 xx.tst
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So if you are using the older style you will need to add logic to handle the time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename _dssinf1 pipe "ls -l xx.*" ;

data dssinf1;
  infile _dssinf1 truncover ;
  length rwa $11 nm 8 userid $32 group $32 size 8 mon day yr time $5 datetime 8;
  input rwa -- yr filename $200. ;
  if index(yr,':') then do;
    time = yr;
    year = year(today());
    if input(cats(day,mon,year),??date9.) &amp;gt; today() then year=year-1;
  end;
  else do ;
    time='00:00';
    year = input(yr,4.);
  end;
  datetime = input(catx(':',cats(day,mon,year),time),datetime15.) ;
  format datetime datetime20. ;
  drop mon day yr year time ;
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>Thu, 30 Mar 2017 03:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345631#M22873</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-03-30T03:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 6.1 Macro (SAS 9.4 Grid 2.0)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345908#M22886</link>
      <description>&lt;P&gt;Thanks, Tom!&amp;nbsp; That was a problem with the year being missing for the most recent six months, but I had a work around that was effective.&amp;nbsp; I like yours also and it works except for the ls option.&amp;nbsp; I guess I have an older version.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp; Do you know why when I put the date into a macro, it changes?&amp;nbsp; The actual value for moddt2 is 20170330 with a date format and moddt1 is Mar302017 with a charater format.&amp;nbsp; when I use symput to put them into macros, &amp;amp;moddt2 is 20170209 and &amp;amp;moddt1 is Feb092017.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;36 data dssinf1;&lt;/P&gt;&lt;P&gt;37 infile _dssinf1 pad recfm=v lrecl=1024 firstobs=2;&lt;/P&gt;&lt;P&gt;38&lt;/P&gt;&lt;P&gt;39 input filename $200.;&lt;/P&gt;&lt;P&gt;40 listinfo=compbl(filename);&lt;/P&gt;&lt;P&gt;41 rwa = scan(listinfo,1,' ');&lt;/P&gt;&lt;P&gt;42 nm = scan(listinfo,2,' ');&lt;/P&gt;&lt;P&gt;43 userid = scan(listinfo,3,' ');&lt;/P&gt;&lt;P&gt;44 dbs = scan(listinfo,4,' ');&lt;/P&gt;&lt;P&gt;45 size= scan(listinfo,5,' ');&lt;/P&gt;&lt;P&gt;46 mon= scan(listinfo,6,' ');&lt;/P&gt;&lt;P&gt;47 day= scan(listinfo,7,' ');&lt;/P&gt;&lt;P&gt;48 yr=scan(listinfo,8,' ');recnum=_n_;&lt;/P&gt;&lt;P&gt;49 if index(yr,':') then do;&lt;/P&gt;&lt;P&gt;50 time = yr;&lt;/P&gt;&lt;P&gt;51 year = year(today());&lt;/P&gt;&lt;P&gt;52 if input(cats(day,mon,year),??date9.) &amp;gt; today() then year=year-1;&lt;/P&gt;&lt;P&gt;53 end;&lt;/P&gt;&lt;P&gt;54 else do ;&lt;/P&gt;&lt;P&gt;2 The SAS System 08:34 Thursday, March 30, 2017&lt;/P&gt;&lt;P&gt;55 time='00:00';&lt;/P&gt;&lt;P&gt;56 year = input(yr,4.);&lt;/P&gt;&lt;P&gt;57 end;&lt;/P&gt;&lt;P&gt;58&lt;/P&gt;&lt;P&gt;59&lt;/P&gt;&lt;P&gt;60 *yr1=year(today());&lt;/P&gt;&lt;P&gt;61 moddt=input(catx('-',mon,day,year),anydtdte11.);&lt;/P&gt;&lt;P&gt;62 call symput('moddt',moddt);&lt;/P&gt;&lt;P&gt;63 format moddt yymmddn8.;&lt;/P&gt;&lt;P&gt;64 moddt2=put(moddt,yymmddn8.);&lt;/P&gt;&lt;P&gt;65 moddt1=cats(mon,day,year);&lt;/P&gt;&lt;P&gt;66 call symputx('moddt1',moddt1);&lt;/P&gt;&lt;P&gt;67 call symputx('moddt2',moddt2);&lt;/P&gt;&lt;P&gt;68 typ= scan(scan(listinfo,9,' '),2,.);&lt;/P&gt;&lt;P&gt;69 fnam = scan(listinfo,9,' ');&lt;/P&gt;&lt;P&gt;70 if scan(fnam,1,.) IN ('filtered_odm_dss','filtered_odm_ufe');&lt;/P&gt;&lt;P&gt;71&lt;/P&gt;&lt;P&gt;72 run;&lt;/P&gt;&lt;P&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;/P&gt;&lt;P&gt;62:22 68:35 70:16&lt;/P&gt;&lt;P&gt;NOTE: The infile _DSSINF1 is:&lt;/P&gt;&lt;P&gt;Pipe command="cd '/hasaspmt/fraud/facility/';ls -la "&lt;/P&gt;&lt;P&gt;NOTE: 73 records were read from the infile _DSSINF1.&lt;/P&gt;&lt;P&gt;The minimum record length was 59.&lt;/P&gt;&lt;P&gt;The maximum record length was 93.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DSSINF1 has 2 observations and 18 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.07 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.02 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;73 %put &amp;amp;moddt. &amp;amp;moddt1. &amp;amp;moddt2.;&lt;/P&gt;&lt;P&gt;20859 Feb092017 20170209&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 19:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345908#M22886</guid>
      <dc:creator>alicia5882</dc:creator>
      <dc:date>2017-03-30T19:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 6.1 Macro (SAS 9.4 Grid 2.0)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345943#M22895</link>
      <description>&lt;P&gt;Your program looks like it is working fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most likely the reason you are confused is that there are two observations in your SAS dataset. So the final value of the macro variable will be from the last observation. &amp;nbsp;So it might be that the first observation in your dataset would have generated that March date, but the last observation has overwritten that value with the February date's values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 19:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/345943#M22895</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-03-30T19:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 6.1 Macro (SAS 9.4 Grid 2.0)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/346103#M22904</link>
      <description>&lt;P&gt;Both observations display the same date.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 12:16:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/346103#M22904</guid>
      <dc:creator>alicia5882</dc:creator>
      <dc:date>2017-03-31T12:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 6.1 Macro (SAS 9.4 Grid 2.0)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/347014#M22949</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;I ended up using the code below to create the macro, which read the information in correctly.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&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 color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;distinct&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; max(moddt2)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; :moddt3 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; dssinf1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Replacement Date =&amp;amp;moddt3.; &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 12:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-6-1-Macro-SAS-9-4-Grid-2-0/m-p/347014#M22949</guid>
      <dc:creator>alicia5882</dc:creator>
      <dc:date>2017-04-04T12:32:12Z</dc:date>
    </item>
  </channel>
</rss>

