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

I put this code in a datastep verbatim as you wrote it and there were no errors.  I only got data in one of the datasets though... which was the professional and courteous... the other two didn't give me any of the data... I don't completely understand the code yet but am starting to really dig into it to understand what you have done here.

I am not seeing any reason that two of the tables didn't show data though... it is prob something small but without knowledge of code like this... its hard for me to look through the code on this one.

DZ

LarryWorley
Fluorite | Level 6

Glad you are making some progress.

You might try looking at the data in the original dataset.  The import wizard is somewhat of a black box.  It creates a text file behind the screen and then reads that text file. You see the code for reading the text file, but not for creating it,

It might be doing something you don't expect, so you may be checking the F! variable for a particular string which does not translated as expected by the black box.

lw:-)


D_Z_
Obsidian | Level 7

Larry... thank you so much for your help!  I got the code to work... and as I was digging through it... I am very impressed with how you did this... although out of my league... i see everything you did and it made pretty darn good sense.  Appreciate you again... thanks so much.

Turns out that part of two of the questions were cut off when transferring to SAS, so when i matched the statements with the point they were cut off at... it worked perfectly.

DZ

TomKari
Onyx | Level 15

Coming along!

I had the same problem. Unfortunately, I couldn't replicate your import process, so I had to hack something together based on the code you posted. In the original, the "F1" or "Operator" field was only 140 characters long, which isn't long enough for the full title. If you can in your import, try making it 256, which worked for me. Otherwise, let me know and I'll revise the code to work with shorter strings.

Tom

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

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
  • 18 replies
  • 4499 views
  • 6 likes
  • 3 in conversation