Dear Arthur, you sir, are nothing short of a hero! When I run the program, however, I get the following error: ERROR: Undetermined I/O failure. And then the program crashes and the data is not added to the spreadsheet. I have tried to figure out what is wrong, but so far without any succes. Is it a problem that you are familiar with in regards to the macro? I have inserted the log as well as my macro call below. Bedste regards, and a huge thank you! Jacob Hornnes %exportxl(data=a, outfile=C:\tjek.xlsx, type=M, range=C15); NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.00 seconds NOTE: There were 1 observations read from the data set WORK.A. NOTE: The data set WORK.T_E_M_P has 1 observations and 3 variables. NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.00 seconds NOTE: There were 1 observations read from the data set WORK.T_E_M_P. NOTE: The data set WORK.T_E_M_P has 1 observations and 3 variables. NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.01 seconds NOTE: PROCEDURE SQL used (Total process time): real time 0.00 seconds cpu time 0.01 seconds NOTE: The file CODE2INC is: Filename=C:\Users\cj1g\AppData\Local\Temp\SEG3760\SAS Temporary Files\_TD2012_CNU1010ZZ6_\#LN00057, RECFM=V,LRECL=32767,File Size (bytes)=0, Last Modified=26. november 2014 14:26:26, Create Time=26. november 2014 14:26:26 NOTE: 6 records were written to the file CODE2INC. The minimum record length was 15. The maximum record length was 56. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.00 seconds NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 3 The SAS System 10:02 Wednesday, November 26, 2014 ERROR: Undetermined I/O failure. NOTE: There were 1 observations read from the data set WORK.A. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.01 seconds
... View more