Hi all,
I am using Enterprise Miner 13.2 and I tried to import Excel file into the Text Import nodes, but encounter one issue. My excel has about 300 comments in different text boxes, but SAS does not recognize them as separate comments, but rather one giant comment. Due to this issue, I cannot run Text Cluster Node further down. Is there a way to import the excel sheet but have SAS recognize each text box as a separate comment? Please help!
Thanks in advance.
"Text boxes" are graphical objects, not data apparently.
This VBA code is supposed to loop over the boxes and convert it to cells.
I really don't do much VBA, so good luck. BTW what ever process was used to generate that data should probably reconsider the use of these boxes.
Option Explicit
Sub test()
Dim r As Long
Dim TxtBox As TextBox
r = 1 'start in Row 1
For Each TxtBox In ActiveSheet.TextBoxes
Cells(r, "A").Value = TxtBox.Text
TxtBox.Delete
r = r + 1
Next
End Sub
First thing I try with any issue regarding Excel is to export to (file save as ) CSV and try that file.
I tried that, and it is still showing document of 1...
"Text boxes" are graphical objects, not data apparently.
This VBA code is supposed to loop over the boxes and convert it to cells.
I really don't do much VBA, so good luck. BTW what ever process was used to generate that data should probably reconsider the use of these boxes.
Option Explicit
Sub test()
Dim r As Long
Dim TxtBox As TextBox
r = 1 'start in Row 1
For Each TxtBox In ActiveSheet.TextBoxes
Cells(r, "A").Value = TxtBox.Text
TxtBox.Delete
r = r + 1
Next
End Sub
I found the solution. Use File Import Node instead of Text Import node will allow SAS to see each individual lines as an separate comment rather than a block of comment.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.