From the Social Science Statistics Blog:
Some journals require authors to make datasets and codes available for a while already… the American Economic Review requires authors to submit their data since 2004, and this information is now available on their website. The AER provides a basic readme document and files with the used variables for an increasing number of articles since late 2002; some authors also provide their program codes. There’s a list of articles with available data here.