Pass a SAS date parameter to Teradata macro using explicit SQL
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Pass a SAS date parameter to Teradata macro... Expand / Collapse
Author
Message
Posted 4/23/2008 12:26:09 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/27/2008 7:26:01 PM
Posts: 1, Visits: 5
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 (&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
Post #11286
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 10:27am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 9 queries. Compression Disabled.