BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Linlin
Lapis Lazuli | Level 10

Hi,

I just updated to Windows 7,IE9,office2010. when I copy-paste to forum, there are a lot of extra spaces. What should I do about it?  see example below.

Thanks - Linlin

data old;

input
a b;

cards;

1 2

2 1

;

data
new;

    set
old;

    do
combinations=
1 to  32;

        output;

    end;

run;

procsort data=new;

by
combinations;

run;

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

Hello Linlin,

Delete blank lines is one of the choices under menu TextFX > TextFX Edit >

At least in v4.0.2 (localized in french)

PG

PG

View solution in original post

9 REPLIES 9
PGStats
Opal | Level 21

I always paste through an intermediate text-based editor (Notepad++) to avoid the distortion. In doing so, I loose some of the spacing and all the color, but at least I know the code is complete. This is not ideal :smileyangry:.

PG

PG
Linlin
Lapis Lazuli | Level 10

Hi PG,

Do you get extra line when you copy from forum to SAS?

Thank - Linlin

PGStats
Opal | Level 21

Yes, plenty. I use Notepad++ for copying in both directions. The editor's command "Delete all blank lines" is useful prior to copying to SAS. - PG

PG
Linlin
Lapis Lazuli | Level 10

I only have Notepad. How can I get Notepad++?  Thanks - Linlin

PGStats
Opal | Level 21

It's available here:

http://notepad-plus-plus.org/

It's free. You can even download a SAS language template (to display SAS-editor-like syntax coloring)

PG

PG
Linlin
Lapis Lazuli | Level 10

Thank you very much!!! - Linlin

ballardw
Super User

Actually SAS supplies a text editor: Type PGM in the command box (or assign to function key). This brings up the older version of the text editor. At least it is still working in SAS 9.2.3. No need to download or even change applications.

Linlin
Lapis Lazuli | Level 10

Hi PG,

where can I find "Delete all blank lines" from notepad++:smileysilly:?

Thanks - Linlin

PGStats
Opal | Level 21

Hello Linlin,

Delete blank lines is one of the choices under menu TextFX > TextFX Edit >

At least in v4.0.2 (localized in french)

PG

PG

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

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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