BookmarkSubscribeRSS Feed
jen123
Fluorite | Level 6

Hello, I have (4) files I imported into SAS (alpha, beta, charlie, delta).  Each file has the same column names.  There is a column called Program.  When I import these 4 files, everything is imported correctly.  Whenever, when I do the following two data step, the Program column is truncated. Data xyz Set alpha beta charlie delta; run; Data xyz, Length Program $ 500.; Set alpha beta charlie delta; run: Thoughts?

5 REPLIES 5
jen123
Fluorite | Level 6

Why is all what I write wrapped in lines???   I didn't copy/paste  anything.  I wrote out the code in this editor.

ChrisHemedinger
Community Manager

I'm not sure what's going on -- your line breaks don't seem to be coming through.  Are you using the full editor?  Perhaps experiment with a different browser if possible and see if you can pinpoint the conditions where this happens.  I can see that this hasn't always been the case for you.

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
Reeza
Super User

You have comma's where you should have semi-colons. Is that part of the copy/paste issue or your actual code?

jen123
Fluorite | Level 6

Chris - By Full Text Editor, do you mean the "Advanced Editor" in the upper right hand corner?

Reeza - the , is the copy/paste error.

I figured it out:  I had to put Informat and Format in.  Works now!  🙂

ChrisHemedinger
Community Manager

If you tried to edit the code and apply code-style formatting by adding some HTML tags, it's possible that the editor here stripped those out before publishing.  I've seen such things before in other places, but haven't done whatever steps it takes to see it play up here.

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

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
  • 5 replies
  • 2107 views
  • 0 likes
  • 3 in conversation