BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
beamer108
Quartz | Level 8

I have a datajob in which I would like the output to be an excel file vs .csv. 

Im using a data target insert node but having trouble understanding what I need to set up in the adv properties to get it working correctly.  I do understand that if there is an existing excel file out there already you have to delete that before creating a new.  I just can't seem to set up the dsn correctly (or other adv properties).

 

Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
TonyL_
Fluorite | Level 6

Here's what I usually do. 

  • Create a new XLSX file or use an existing one.
  • Go into the 32-bit ODBC admin or click on New ODBC Connection from the Data Connections area in DataFlux.
  • Add a new User or System DSN, selecting the Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)
  • Point it to the spreadsheet from above and make sure you have "Read Only" UNchecked.

In your DataFlux job, use the Data Target (Insert) node:

  • Navigate to select the Data connection.
  • Select the new connection you created above.
  • Click on it and click the green plus + to create a new output tab name.
  • Make sure "Delete Existing Rows" is UNchecked in your Insert node.

Running your job should automatically create a new Tab and Named Range in your spreadsheet.

 

Also, I don't think Excel allows the job to automatically delete or alter the data or range (hence my final bullet point above), so I always clear our my data before each run, either programmatically in DF or manually.

View solution in original post

2 REPLIES 2
TonyL_
Fluorite | Level 6

Here's what I usually do. 

  • Create a new XLSX file or use an existing one.
  • Go into the 32-bit ODBC admin or click on New ODBC Connection from the Data Connections area in DataFlux.
  • Add a new User or System DSN, selecting the Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)
  • Point it to the spreadsheet from above and make sure you have "Read Only" UNchecked.

In your DataFlux job, use the Data Target (Insert) node:

  • Navigate to select the Data connection.
  • Select the new connection you created above.
  • Click on it and click the green plus + to create a new output tab name.
  • Make sure "Delete Existing Rows" is UNchecked in your Insert node.

Running your job should automatically create a new Tab and Named Range in your spreadsheet.

 

Also, I don't think Excel allows the job to automatically delete or alter the data or range (hence my final bullet point above), so I always clear our my data before each run, either programmatically in DF or manually.

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1310 views
  • 1 like
  • 2 in conversation