Russian Wyatt 2 Posted October 27, 2023 Share Posted October 27, 2023 In Data Migrator, I have a data flow that is moving data from one table to another based on a date field. Right now I have to manually set the date field to be "greater than" a certain date. But what I would like to do is have it pull all the data from the source as of three weeks ago. (today - 21 days).I'm on version 9.2Any ideas? Link to comment Share on other sites More sharing options...
Solution David Beagan Posted October 27, 2023 Solution Share Posted October 27, 2023 Could you put the following -SET statment in your server profile (edasprof.prf) to calculate a global variable with the value of the date for 3 weeks ago?-SET &&3WeeksBack = AYMD(&DATEH8,-21,'I8YYMD');And then use the global variable where you were using the date? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now