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.

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
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.

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 1240 views
  • 0 likes
  • 3 in conversation