BookmarkSubscribeRSS Feed
Eric_Beckerrr
Fluorite | Level 6

Disclaimer: I did not go to school for data science, computer science, artificial intelligence, machine learning, and/or software engineering...

 

Greetings SAS Community,

 

I have downloaded datasets from the National Data Archive of Child Abuse & Neglect (NDACAN), as well as from Data.gov and Children's Bureau of An Office of the Administration for Children & Families. 

 

1st - I am trying to upload the NDACAN dataset into SAS Viya Workbench Visual Studio Code. But ran into problems, obviously. The dataset is in my external hard drive. 

 

File types: SAS, SPSS. DTA, SAV, DAT, BDAT, XPT, POR, SAS7BDAT, SAS7BCAT, DO, TAB, TRN, SPS.

 

2nd - I am trying to upload these external datasets into SAS in order to create historical volatility index limits for the BioFam Services startup I am trying to secure funding for [ https://linktr.ee/BioFamServices ]

 

*** Yes, I have tried to use various online sources (typed words and video tutorials) but to no avail...

*** Since I am new to SAS, I am having difficulties locating the various tools, options, etc. suggested in the online resources.

8 REPLIES 8
Tom
Super User Tom
Super User

Most of those sources should have regular SAS code for converting the files you downloaded into a SAS dataset.  (Note that you can run normal SAS code in a VIYA installation). 

 

Once you have the files as SAS datasets then you should be able to load them into CAS libraries so you can use VIYA on them.

Quentin
Super User

There is a community specific to Workbench.  You might try posting the question there as well:
https://communities.sas.com/t5/SAS-Viya-Workbench-Discussion/bd-p/viya-workbench-discussion

 

You should describe what IDE you are using (VS Code?) and also describe how you tried to upload the file to workbench, and what went wrong.  Also include any error messages.

 

This YT video from SAS shows file upload at 4:44.  https://www.youtube.com/watch?v=BkjmQMXfpJU

 

Eric_Beckerrr
Fluorite | Level 6

Yes, I am using VS Code. 

 

And wow, after watching the video, you just made me feel so stupid (humorously said LOL). Thank you!

Eric_Beckerrr
Fluorite | Level 6

One of the datasets couldn't load due to this error: 

 

"...The file is not displayed in the text editor because it is either binary or uses an unsupported text encoding...."

Eric_Beckerrr
Fluorite | Level 6

Another dataset couldn't open due to the following: 

 

"...The file is not displayed in the text editor because it is very large (231.47MB)...."

Eric_Beckerrr
Fluorite | Level 6

A third dataset said the same: 

 

"...The file is not displayed in the text editor because it is very large (285.82MB)..."

Tom
Super User Tom
Super User

@Eric_Beckerrr wrote:

A third dataset said the same: 

 

"...The file is not displayed in the text editor because it is very large (285.82MB)..."


Why would you try to view a dataset in a text editor?

 

Run some code to look at the files.

 

This simple SAS data step will dump the first 500 bytes of a file to the SAS log so you get an idea if the file is text or binary.

data _null_;
  infile 'the name of my file' lrecl=100 recfm=f obs=5;
  input;
  list;
run;
Eric_Beckerrr
Fluorite | Level 6

Why? Because I do not have the experience needed to know the difference. I'm LBD'ing (learning by doing).

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 8 replies
  • 1040 views
  • 3 likes
  • 3 in conversation