>>What I was looking for is a randomizer that will arbitrarily add dates in my records as the BUILD runs. Is that possible?
Bill Ashton, Unfortunately DFSORT does not have any random function available. I would suggest have the dates generated from 0001-01-01 to 9999-12-31 and now use this an input to a program that would pick the randon records from this file. Note that your random number should be between 1 and 3,652,058. >>Will it generate Valid Leap Day 02-29 in 2012, 2016, 2020, etc? Mike Schwab, As author of the Date conversion/arithmetic functions I would say, it does produce valid dates for leap years following the leap year rules Will it generate invalid dates , 02-29, 02-30, 02-31, 04-31, 06-31, 09-31, 11-31, etc? No. >>Mr. Natural sez, Use the right tool for the job. Gil, Aren't you limited to just 100,000 records ? The number of days between 0001-01-01 and 9999-12-31 is 3,652,058. How does above REXX generate beyond 100,000? If your run your exec as with the following TSO GENYDATA 100001 1753 9999 Results in 14 +++ say date( 'Standard', First + random( 0, Span ), 'Base' ) IRX0040I Error running GENYDATA, line 14: Incorrect call to routine Lets say you have managed to get a random number between 1 and 3,652,058 by tweaking the formula for random number, how are you planning to avoid duplicates? Kolusu ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN