﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Data Warehousing  / Teradata   / Pass a SAS date parameter to Teradata macro using explicit SQL / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Wed, 03 Dec 2008 19:09:05 GMT</lastBuildDate><ttl>20</ttl><item><title>Pass a SAS date parameter to Teradata macro using explicit SQL</title><link>http://www.teradata.com/teradataforum/Topic11286-1-1.aspx</link><description>As per the subject, I'm trying to run a Teradata macro from SAS using explicit SQL pass through.  The macro parameter is a date, but the SAS date format and the Teradata date format differ, and I haven't found a way of converting the date parameter.Here is an excerpt of the SQL I'm trying to run:  insert into mySAStable   select * from connection to teradata (    exec mySchema.myMacro (&amp;dateParameter)  );I have found the function SASDATEFMT, but I can't figure out how to use it to convert a parameter and then use the result.Similarly, I've found the SAS sample code to "Convert a value in the form of MMYY to a SAS date", which works great, but can't figure out how to use it in the context above.Will appreciate any help and/or pointers.Regards,Peter</description><pubDate>Wed, 23 Apr 2008 00:26:09 GMT</pubDate><dc:creator>pjroutledge</dc:creator></item></channel></rss>