BookmarkSubscribeRSS Feed
DerekChan
Calcite | Level 5

there are a  error when importing the file by script. (You can see row 107 - 120)

But it is alright when file is imported manually.

correct result from manual import

manual import.bmp

wrong result from script import

script import.bmp

import script

script.bmp

3 REPLIES 3
art297
Opal | Level 21

Unless you've created a macro variable priror to the macro you showed, with the name yymmdd, I don't see how that code could run.

Ksharp
Super User

I think you should post some contents of original file to judge .

Doc_Duke
Rhodochrosite | Level 12

DerekChan,

I agree with Ksharp that we don't have enough information to help directly.  However, you could try the Enterprise Guide Data --> open task to get the spreadsheet into SAS.  EGuide has much better Excel data handling than PROC IMPORT.

Doc Muhlbaier

Duke

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1281 views
  • 0 likes
  • 4 in conversation