<?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: SUBSTR to change dates as text to actual dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263841#M51660</link>
    <description>&lt;P&gt;If I do that in an import, all my cells get shifted. For example, a CSV-file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(First row contains variable names.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A;B;C;D;E&lt;/P&gt;&lt;P&gt;X;X;;Y;Z&lt;/P&gt;&lt;P&gt;X;X;Y;Y;Z&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will give me a table like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;E&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even though you can clearly see that the it says "X;X;;Y;Z", it somehow ignores the ";;" and makes all my cells move one to the left. The unloads I have been using, have quite a few empty cells and so this became a problem. The quick and easy fix was to fill every empty cell with "-". So the CSV-file would look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A;B;C;D;E&lt;/P&gt;&lt;P&gt;X;X;-;Y;Z&lt;/P&gt;&lt;P&gt;X;X;Y;Y;Z&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will give me a table like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;E&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That makes me wonder, is that normal? If so, would it be wise to replace nulldate with an empty cell?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Apr 2016 12:40:13 GMT</pubDate>
    <dc:creator>Yves_Boonen</dc:creator>
    <dc:date>2016-04-14T12:40:13Z</dc:date>
    <item>
      <title>SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263818#M51650</link>
      <description>&lt;P&gt;I have a CSV-file containing dossier numbers, dossier titles, dossier creators and dates (deadline, start date, close date, creation date). When a dossier is created, it will contain 5 sub dossiers. The first dossier will become active and the other four will become waiting. Cancelled and waiting dossiers do not have any dates, except for a creation date. Instead of showing dates, these cells will contain the value "nulldate". To make the import (date / infile / length / format / informat / input / keep) easier, I decided to import every column as a textstring. The idea was to change the format of the dates once required, using the SUBSTR command. (Date format is dd/mm/yyyy hh:mm.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;deadline&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;start_date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;close_date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;r_creation_date&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/04/2016 14:53&lt;/TD&gt;&lt;TD&gt;29/02/2016 14:53&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;29/02/2016 14:53&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/04/2016 15:04&lt;/TD&gt;&lt;TD&gt;29/02/2016 15:04&lt;/TD&gt;&lt;TD&gt;30/03/2016 14:57&lt;/TD&gt;&lt;TD&gt;29/02/2016 15:04&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:04&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8/03/2016 11:24&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:24&lt;/TD&gt;&lt;TD&gt;7/03/2016 15:52&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25/04/2016 12:01&lt;/TD&gt;&lt;TD&gt;4/04/2016 12:01&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15/03/2016 11:36&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:35&lt;/TD&gt;&lt;TD&gt;1/03/2016 12:57&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15/03/2016 10:41&lt;/TD&gt;&lt;TD&gt;1/03/2016 10:41&lt;/TD&gt;&lt;TD&gt;1/03/2016 10:41&lt;/TD&gt;&lt;TD&gt;1/03/2016 10:40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19/04/2016 12:27&lt;/TD&gt;&lt;TD&gt;8/03/2016 12:27&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;1/03/2016 10:55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8/03/2016 10:58&lt;/TD&gt;&lt;TD&gt;1/03/2016 10:58&lt;/TD&gt;&lt;TD&gt;7/03/2016 14:15&lt;/TD&gt;&lt;TD&gt;1/03/2016 10:58&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15/04/2016 11:46&lt;/TD&gt;&lt;TD&gt;1/04/2016 11:46&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8/03/2016 11:15&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:15&lt;/TD&gt;&lt;TD&gt;1/04/2016 11:44&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;1/03/2016 10:36&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;1/03/2016 10:41&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;28/03/2016 9:56&lt;/TD&gt;&lt;TD&gt;14/03/2016 9:56&lt;/TD&gt;&lt;TD&gt;nulldate&lt;/TD&gt;&lt;TD&gt;1/03/2016 11:18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21/03/2016 14:21&lt;/TD&gt;&lt;TD&gt;29/02/2016 14:21&lt;/TD&gt;&lt;TD&gt;16/03/2016 10:52&lt;/TD&gt;&lt;TD&gt;29/02/2016 14:21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21/03/2016 14:34&lt;/TD&gt;&lt;TD&gt;29/02/2016 14:34&lt;/TD&gt;&lt;TD&gt;17/03/2016 12:04&lt;/TD&gt;&lt;TD&gt;29/02/2016 14:34&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I go about using SUBSTR to change the format from $char16. to the actual format used through a datastep in my query (not the query I used for importing, but the query I used to analyse my data).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, later on I will need to compare some of these dates to a&amp;nbsp;fixed date. This is because I am working with exports from a database and so the fixed date becomes the date of the export day. (&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%LET&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; date=1APR2016;&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't matter which format it ends up using, as long as I can make the analysis. Any suggestions how I can start this?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 11:46:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263818#M51650</guid>
      <dc:creator>Yves_Boonen</dc:creator>
      <dc:date>2016-04-14T11:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263821#M51651</link>
      <description>&lt;P&gt;To clarify:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to check if the dossiers were handled before the deadline. For dossiers that are completed, a close date is available. The calculation will become like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  when ('DONE') do;
    	done+1;
    	if close_date &amp;gt; deadline then done_overtime+1;
  end;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, for dossiers that are still active, there will be no close date available. In that case I will need to compare it to another date instead. Since the export I am currently using, was created on the 1st of April, this fixed date has to be April 1st, 2016. The calculation will then become like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;when ('ACTIVE') do;
    	active+1;
    	if date() &amp;gt; deadline then active_overtime+1;
end;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Naturally this calculation won't work, since SAS thinks the dates are a textstring and not dates. Importing the dates as textstrings is a necessity because not only does it actually contain a textstring ("nulldate"), I need to import the data from the CSV-file untouched. A colelague pointed out that the best approach would be to use the import query for importing everything as a textstring and then later on use the SUBSTR command to change the format in the datastep from your actual analysis.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 11:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263821#M51651</guid>
      <dc:creator>Yves_Boonen</dc:creator>
      <dc:date>2016-04-14T11:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263823#M51652</link>
      <description>&lt;P&gt;Hands down, the best method to deal with these problems is to store dates and timestamps as intended, and use formats for display or output as necessary; all comparisons and mathematical operations become a breeze instead of a massive PITA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the way to go in your situation is to&lt;/P&gt;
&lt;P&gt;- read the column as character&lt;/P&gt;
&lt;P&gt;- check if it contains "nulldate"&lt;/P&gt;
&lt;P&gt;- if yes, set (numerical) date/timestamp variable to missing (.)&lt;/P&gt;
&lt;P&gt;- else convert with proper format&lt;/P&gt;
&lt;P&gt;- drop temporary character variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to preserve the original unconverted data, add a sufficiently large character variable in the data set and fill it with the contents of _infile_.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 11:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263823#M51652</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-14T11:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263825#M51654</link>
      <description>&lt;P&gt;What you are suggesting makes sense. If I understand correctly, I would have to do this during the import, don't I? Just in case I will show you the import query I used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data unload.task;
infile '\\networklocation\unloads\JNX\JNX_unload_tasks_ 201603_.csv' dlm=';' truncover firstobs=2 lrecl=500;

length
  r_object_id $16
  object_name $70
  deadline $16
  start_date $16
  close_date $16
  task_handler $25
  task_state $9
  dossier_nr $6
  sequence $1
  r_creation_date $16
;

format
  r_object_id $char16.
  object_name $char70.
  deadline $char16.
  start_date $char16.
  close_date $char16.
  task_handler $char25.
  task_state $char9.
  dossier_nr $char6.
  sequence $char1.
  r_creation_date $char16.
;

informat
  r_object_id $char16.
  object_name $char70.
  deadline $char16.
  start_date $char16.
  close_date $char16.
  task_handler $char25.
  task_state $char9.
  dossier_nr $char6.
  sequence $char1.
  r_creation_date $char16.
;

input
  r_object_id
  object_name
  deadline
  start_date
  close_date
  task_handler
  task_state
  dossier_nr
  sequence
  r_creation_date
;

keep
  r_object_id
  object_name 
  deadline
  start_date
  close_date
  task_handler
  task_state
  dossier_nr
  sequence
  r_creation_date
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This brings us back to the format of the dates. The format itself is should be date10., but that would be without the "hh:mm". I thought the SUBSTR could manage that by saying something like: "new_deadline=SUBSTR(deadline,1,10)", but I can't get that to work at all.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 12:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263825#M51654</guid>
      <dc:creator>Yves_Boonen</dc:creator>
      <dc:date>2016-04-14T12:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263826#M51655</link>
      <description>&lt;P&gt;You would use inputs and puts to arrange your data after the fact - not sure why you don't just update this on the read in? &amp;nbsp;Here is an example of creating date, time, and datetime variables:&lt;/P&gt;
&lt;PRE&gt;data have;
  length deadline  start_date 	close_date r_creation_date $50; 
  infile datalines dlm=",";
  input deadline $ start_date $	close_date $ r_creation_date $;
datalines;
11/04/2016 14:53,29/02/2016 14:53,nulldate,	29/02/2016 14:53
11/04/2016 15:04,29/02/2016 15:04,30/03/2016 14:57,	29/02/2016 15:04
nulldate,nulldate,nulldate,1/03/2016 11:04
;
run;

data want;
  set have;
  if deadline ne "nulldate" then do;
    deadlined=input(scan(deadline,1," "),ddmmyy10.);
    deadlinet=input(scan(deadline,2," "),time5.);
    deadlinedt=input(put(deadlined,yymmdd10.)||"T"||put(deadlinet,tod5.)||":00",e8601dt.);
  end;
  format deadlinedt datetime. deadlined date9. deadlinet time5.;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Apr 2016 12:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263826#M51655</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-14T12:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263830#M51656</link>
      <description>&lt;P&gt;I think I see your point. If I were to do this in the analysis query, the query itself would become lengthy, the query would become very &lt;SPAN&gt;unorderly&lt;/SPAN&gt; and perhaps even slow to execute?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I were to do this from the import, could I still do format $char16. and then use the proper informat?&amp;nbsp; But is there a format that sticks to the used format? Datetime16. perhaps? But how will the import handle the nulldate values if I use that format?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 12:14:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263830#M51656</guid>
      <dc:creator>Yves_Boonen</dc:creator>
      <dc:date>2016-04-14T12:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263836#M51657</link>
      <description>&lt;P&gt;You should be able to use:&lt;/P&gt;
&lt;P&gt;informat &amp;lt;your_variable&amp;gt; anydtdtm.;&lt;/P&gt;
&lt;P&gt;In your import code, this should read it in as a date time. &amp;nbsp;If the import value is missing, then it will be missing in the output variable. &amp;nbsp;If you actually have the word "nulldate" present in your import file then you have problems, and that needs to be removed before importing - personally I wouldn't accept a file which had that kind of thing in it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See SAS help:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/leforinforref/63324/HTML/default/viewer.htm#p1hsn1ji141r4zn0z3xm2dthop6a.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/leforinforref/63324/HTML/default/viewer.htm#p1hsn1ji141r4zn0z3xm2dthop6a.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On your other point, yes, doing conversions in a query would take longer, the functions get called each row. &amp;nbsp;Better to have data in a good strcuture before starting to process it.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 12:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263836#M51657</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-14T12:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263837#M51658</link>
      <description>&lt;P&gt;What if I were to do the unthinkable and alter my unload? Only alter it by changing "nulldate" with "-". If I am not mistaken, then the format you mentioned above should work, right?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 12:27:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263837#M51658</guid>
      <dc:creator>Yves_Boonen</dc:creator>
      <dc:date>2016-04-14T12:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263839#M51659</link>
      <description>&lt;P&gt;I would leave it as "", i.e. toally empty. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But then I would also have a data import agreement in place signed off by both parties, which detailed, as receiver of the data, the exact structure, file format, and contents of the data file as I want it to be (or near as). &amp;nbsp;To not have any of this makes me a very sad importer &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 12:32:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263839#M51659</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-14T12:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263841#M51660</link>
      <description>&lt;P&gt;If I do that in an import, all my cells get shifted. For example, a CSV-file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(First row contains variable names.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A;B;C;D;E&lt;/P&gt;&lt;P&gt;X;X;;Y;Z&lt;/P&gt;&lt;P&gt;X;X;Y;Y;Z&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will give me a table like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;E&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even though you can clearly see that the it says "X;X;;Y;Z", it somehow ignores the ";;" and makes all my cells move one to the left. The unloads I have been using, have quite a few empty cells and so this became a problem. The quick and easy fix was to fill every empty cell with "-". So the CSV-file would look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A;B;C;D;E&lt;/P&gt;&lt;P&gt;X;X;-;Y;Z&lt;/P&gt;&lt;P&gt;X;X;Y;Y;Z&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will give me a table like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;E&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That makes me wonder, is that normal? If so, would it be wise to replace nulldate with an empty cell?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 12:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263841#M51660</guid>
      <dc:creator>Yves_Boonen</dc:creator>
      <dc:date>2016-04-14T12:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263856#M51661</link>
      <description>&lt;P&gt;Change your infile "..." statement to include (either) DSD or missover option - can't think which it is, think its DSD:&lt;/P&gt;
&lt;P&gt;infile "...\textfile.txt" dlm=";" dsd;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263856#M51661</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-14T13:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263858#M51662</link>
      <description>&lt;P&gt;When this kind of shifting happens, it can usually be corrected by using the &lt;FONT face="courier new,courier"&gt;dsd&lt;/FONT&gt; option in the infile statement. This causes two delimiters in sequence to be interpreted as a missing value. Without &lt;FONT face="courier new,courier"&gt;dsd&lt;/FONT&gt;, the two delimiters are taken as one.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263858#M51662</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-14T13:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263864#M51663</link>
      <description>&lt;P&gt;That works wonders! Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I still have an error with my anydate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imagine just having a CSV-file with one column "dates" and in it a bunch of dates in the format "dd/mm/yy hh:mm". The code I have right now, looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dates;
infile 'C:\temp\dates.csv'  dlm=';' truncover firstobs=2 lrecl=500;

length
  date $16
;

format
  date $char16.
;

informat
  date anydtdtm16.
;

input
  date
;

keep
  date
;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It results with an error in the log (from the original query and table):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1542    r_creation_date anydtdtm16.
                        -----------
                        48
ERROR 48-59: The informat $ANYDTDTM was not found or could not be loaded.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess I must be missing something somewhere? Do I need to adjust something in the format or even the input?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263864#M51663</guid>
      <dc:creator>Yves_Boonen</dc:creator>
      <dc:date>2016-04-14T13:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263867#M51664</link>
      <description>&lt;P&gt;You try to assign a numerical format to a variable that was already defined as character. SAS then tries to correct your "obvious" mistake by searching for a proper character format (that would be named $anydtdtm), which does not exist.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:28:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263867#M51664</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-14T13:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263874#M51667</link>
      <description>&lt;P&gt;Oh, stupid me... I should remove the "$" in the length, shouldn't I? &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://communities.sas.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263874#M51667</guid>
      <dc:creator>Yves_Boonen</dc:creator>
      <dc:date>2016-04-14T13:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263876#M51668</link>
      <description>&lt;P&gt;Since r_creation_date is a timestamp, don't include it in the length statement at all. Timestamps are best left at the default length of 8 (numeric).&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:53:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263876#M51668</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-14T13:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263877#M51669</link>
      <description>&lt;P&gt;ANYDTDTM and related AnyDate are INFORMATS only. (read data in various inconsistent forms)&lt;/P&gt;
&lt;P&gt;For a FORMAT you would want a Format such as DATETIME16. (display values in one consistent manner)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263877#M51669</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-14T13:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263881#M51671</link>
      <description>&lt;P&gt;So the simple example I posted earlier should look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dates;
infile 'C:\temp\dates.csv'  dlm=';' truncover firstobs=2 lrecl=500;

length
  date 8
;

format
  date DATETIME16;

informat
  date anydtdtm16.
;

input
  date
;

keep
  date
;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This ought to be correct, right? (I will test it right now.)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 14:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263881#M51671</guid>
      <dc:creator>Yves_Boonen</dc:creator>
      <dc:date>2016-04-14T14:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263885#M51672</link>
      <description>&lt;P&gt;Holy tables! It finally worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I might need to need to get in touch again, if my analysis query starts acting up when it is comparing the dates from the table with a fixed date. I think it should be okay though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a ton!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://communities.sas.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 14:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263885#M51672</guid>
      <dc:creator>Yves_Boonen</dc:creator>
      <dc:date>2016-04-14T14:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: SUBSTR to change dates as text to actual dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263890#M51675</link>
      <description>&lt;P&gt;As I said, I would have to come back to this thread, regarding the fixed date comparison.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the third comment in the code below, you will find a big data step. In the middle of the datastep, I will create a variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"%LET date=01APR2016 00:00:00;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next up in the same datastep I will calculate if the ACTIVE task ihas crossed his deadline or not. Since an ACTIVE task does not have a close_date, I will need to use a fixed date. The fixed date has to be the date of the day the unload was created and that's why it has to be the 1st of April 2016. Since the above quest to importing the dates resulted in a format of "ddMMMyyyy hh:mm:ss", I thought I could just write t he date variable like I did above. The result is not what I expected. When I run the entire query below, everything works as intended, but I have 0 active_overtime tasks for all users in the table. There are no errors, but I do think SAS does not recognize the format of the variable date. Could I just use the same strategy as the solution above? Simply add a format or informat in the %LET command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Sorteer op intake gesprek. */

proc sql;
create table task_1 as
select task_handler, object_name, task_state, deadline, start_date, close_date, r_creation_date
from unload.task
where object_name = 'Intake gesprek' 
order by task_handler;
quit;

/* Sorteer op status ACTIVE en DONE. */

proc sql;
create table task_2 as
select task_handler, object_name, task_state, deadline, start_date, close_date, r_creation_date
from task_1
where task_state in ('ACTIVE','DONE')
order by task_handler, task_state;
quit;

/* Alle ACTIVE en DONE taken optellen en overtime datum berekenen (ACTIVE_OVERTIME en DONE_OVERTIME). */

data task_3;
set task_2;
by task_handler;
retain
	active
	active_overtime
	done
	done_overtime
;

if first.task_handler
then do;
  	active=0;
	active_overtime=0;
  	done=0;
	done_overtime=0;
end;

/* Sinds er unloads worden gebruikt, wordt er geen live data gebruikt. Variabele "date" is een referentie datum, die overeen komt met de datum van de unloads. */

%LET date=01APR2016 00:00:00;

select (task_state);

  	when ('DONE') do;
    	done+1;
    	if close_date &amp;gt; deadline then done_overtime+1;
  	end;

	when ('ACTIVE') do;
    	active+1;
    	if date() &amp;gt; deadline then active_overtime+1;
  	end;

  	otherwise ignore+1;
end;

if last.task_handler then output;
keep task_handler active active_overtime done done_overtime;
run;

/* Sorteer op status CANCEL en CANCELLED. */

proc sql;
create table cancel_1 as
select task_handler, object_name, task_state, deadline, start_date, close_date, r_creation_date
from unload.task
where task_state in ('CANCEL','CANCELLED')
order by task_handler, task_state;
quit;

/* Alle CANCEL en CANCELLED taken optellen. */

proc sql;
create table cancel_2 as
select task_handler, count(*) as total_cancel
from cancel_1
group by task_handler;
quit;

/* Sorteer op status WAITING. */

proc sql;
create table waiting_1 as
select task_handler, object_name, task_state, deadline, start_date, close_date, r_creation_date
from unload.task
where task_state in ('WAITING')
order by task_handler, task_state;
quit;

/* Alle WAITING taken optellen. */

proc sql;
create table waiting_2 as
select task_handler, count(*) as total_waiting
from waiting_1
group by task_handler;
quit;

/* Alle bovenstaande tabellen samenvoegen tot het eindresultaat. (ACTIVE, DONE, CANCEL en WAITING.) */

proc sql;
create table report_1 as
select A.object_name, A.group_members, B.active, B.active_overtime, B.done, B.done_overtime
from unload.employee as A, task_3 as B
where A.group_members=B.task_handler
;
quit;

proc sql;
create table report_2 as
select A.object_name, A.group_members, A.active, A.active_overtime, A.done, A.done_overtime, B.total_cancel as cancelled
from report_1 as A, cancel_2 as B
where A.group_members=B.task_handler
;
quit;

proc sql;
create table report.task as
select A.object_name, A.group_members, A.active, A.active_overtime, A.done, A.done_overtime, A.cancelled, B.total_waiting as waiting
from report_2 as A, waiting_2 as B
where A.group_members=B.task_handler
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Apr 2016 14:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SUBSTR-to-change-dates-as-text-to-actual-dates/m-p/263890#M51675</guid>
      <dc:creator>Yves_Boonen</dc:creator>
      <dc:date>2016-04-14T14:44:17Z</dc:date>
    </item>
  </channel>
</rss>

