Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export to Access with date formats

Status
Not open for further replies.

shelby55

Technical User
Jun 27, 2003
1,229
CA
Hi

I am trying to export a SAS dataset to Access.

The code is:
PROC EXPORT DATA= MYLIB.NACRS2003
OUTTABLE= "NACRS2003"
DBMS=ACCESS REPLACE;
DATABASE="D:\Data Files\Data Release\NACRS.mdb";
RUN;

Where do I include the format statement so that the dates are in date9. format? How to list many?

Thanks.

Shelby

 
I don't know for sure, however I would say that it would be best to apply the format to the columns in a previous datastep. Just use the format statement like this:-
Code:
  format X Y X date9.;
Should do it.

Chris
Business Analyst, Code Monkey, Data Wrangler.
SAS Guru.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top