|
|
Reading a Outlook or Exchange folder with SAS
Step 1 - Create Access table
Create table in Access with the new table button and choose
"Link Table"
Change the file extension to Exchange() or Outlook()
Follow the prompts to the folder you desire.
Step 2 - Create SAS program to read the Access
proc import table='Inbox'
out=Inbox(keep=received from subject Has_Attachments)
dbms=access
replace;
database="C:\db1.mdb";
run;
You can create a LIBNAME statement too, but it did not work for me
until I ran the PROC IMPORT above.
libname a access "C:\db1.mdb";
I was able to update the Inbox table with the LIBNAME statement but it
caused SAS some strange errors.
This was done with:
SAS 9.1 TS Level 1M2
XP_PRO platform
Operating System Information
Windows Version 5.1.2600
|
|
0
|
|
|
|
Reply
|
bracyr (12)
|
9/21/2006 3:21:48 PM |
|
Bracyr - nice!
I had no problem using the libname engine in XP SAS 9.13, except for
some reason it wants to reset my default SAS folder to "C:\Program
Files\Common Files\System\MSMAPI\1033\".
10 libname mail access 'db1.mdb';
NOTE: Libref MAIL was successfully assigned as follows:
Engine: ACCESS
Physical Name: db1.mdb
11
12 data _null_;
13 set mail.'SAS-L'n(keep=subject from);
14 where from='bracyr@GMAIL.COM';
15 put (_all_) (=/);
16 run;
Subject=Reading a Outlook or Exchange folder with SAS
From=bracyr@GMAIL.COM
Subject=Re: Saving to a CSV File in Mainframe SAS
From=bracyr@GMAIL.COM
NOTE: There were 2 observations read from the data set MAIL.'SAS-L'n.
WHERE from='bracyr@GMAIL.COM';
NOTE: DATA statement used (Total process time):
real time 2.56 seconds
cpu time 0.56 seconds
17
18 libname mail clear;
NOTE: Libref MAIL has been deassigned.
very interesting
Paul Choate
DDS Data Extraction
(916) 654-2160
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
bracyr@GMAIL.COM
Sent: Thursday, September 21, 2006 8:22 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Reading a Outlook or Exchange folder with SAS
Step 1 - Create Access table
Create table in Access with the new table button and choose
"Link Table"
Change the file extension to Exchange() or Outlook()
Follow the prompts to the folder you desire.
Step 2 - Create SAS program to read the Access
proc import table='Inbox'
out=Inbox(keep=received from subject Has_Attachments)
dbms=access
replace;
database="C:\db1.mdb";
run;
You can create a LIBNAME statement too, but it did not work for me
until I ran the PROC IMPORT above.
libname a access "C:\db1.mdb";
I was able to update the Inbox table with the LIBNAME statement but it
caused SAS some strange errors.
This was done with:
SAS 9.1 TS Level 1M2
XP_PRO platform
Operating System Information
Windows Version 5.1.2600
|
|
0
|
|
|
|
Reply
|
pchoate (2551)
|
9/21/2006 8:41:53 PM
|
|
|
1 Replies
127 Views
(page loaded in 0.063 seconds)
Similiar Articles: Compress SAS dataset without recreating - comp.soft-sys.sas ...Create folder with SAS - comp.soft-sys.sas... work: proc sql ... How to read SAS datasets in a zip file - comp.soft-sys ... be Compressed - comp.compression... huge Outlook pst ... Read a .zip file from MS Access? - comp.compressionHow to read SAS datasets in a zip ... with Compressed (zipped) folders in MS Access ... Now, I've read ... Outlook is a program that is mainly used to read ... File Cannot be Compressed - comp.compressionI have a huge Outlook pst (6GB) file that i want to ... he or she would be overwhelmed by attempting to read a ... you view the properties of an encrypted file or folder ... auto-copy/export & auto-import - comp.databases.filemaker ...Export SAS data to Excel in UNIX - comp.soft-sys.sas How to import excel file ... ... to copy the Auto-Complete List (.nk2) from ... account or an older version of Outlook ... yahoo pop: how can I download Sent messages? - comp.mail.misc ...(Yahoo partisans should not read following the ... outlook -- listing all 'personal folders' - comp.lang.rexx ... yahoo pop: how can ... Text Mining (Index) - comp.soft-sys.sas yahoo ... Evolution Audio no longer works - comp.music.midiIf it moved it to the system folder, there must be programs that ... Error in reading compressed file - comp.soft-sys.sas Doesn't sound like a problem with the compression ... Can I recall an e-mail in the Mail app? - comp.sys.mac.apps ...And you could check if someone actually read your ... gone for good. > > Messaging systems like MS Exchange ... Outlook Folders to a Java Application using Swing? sure, you ... how to send mail to multiple recipients - comp.unix.admin ...while read address do echo ... How to send out email thru "Microsoft Exchange Server" ... sending mail through Outlook ... in a mail - comp.soft-sys.sas Hello Sas ... Apple Mail: attachment problems - comp.sys.mac.apps... attachment via drag and drop from its folder to ... http://www.goldmark.org/jeff/ I rarely read ... I have emails from Outlook Express Outlook Microsoft Exchange ... what's the differ between lea and mov offset ? - comp.lang.asm.x86 ...... time to be posted, I tried to use xnews and outlook but ... What does it mean for a folder with "@" in front of the ... x86 - LEA: lea, x86 - Experts Exchange - Your Technology ... Reading a Outlook or Exchange folder with SAS - sas - Mofeel Groupssas, Reading a Outlook or Exchange folder with SAS . comp.soft-sys.sas - The SAS statistics package. emails in Outlook/Exchange Public folder will not mark as read ...Keywords: emails, in, Outlook/Exchange, Public, folder, will, not, mark, as, read. New message in Outlook inbox not bolded; new email is not bold in outlook 7/12/2012 4:27:17 PM
|
|
|
|
|
|
|
|
|