DATA Step, Macro, Functions and more

a lot of extra space when I paste to the forum

Accepted Solution Solved
Reply
Super Contributor
Posts: 1,636
Accepted Solution

a lot of extra space when I paste to the forum

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;


Accepted Solutions
Solution
‎05-01-2012 02:09 PM
Respected Advisor
Posts: 4,925

Re: a lot of extra space when I paste to the forum

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


All Replies
Respected Advisor
Posts: 4,925

Re: a lot of extra space when I paste to the forum

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
Super Contributor
Posts: 1,636

Re: a lot of extra space when I paste to the forum

Hi PG,

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

Thank - Linlin

Respected Advisor
Posts: 4,925

Re: a lot of extra space when I paste to the forum

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
Super Contributor
Posts: 1,636

Re: a lot of extra space when I paste to the forum

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

Respected Advisor
Posts: 4,925

Re: a lot of extra space when I paste to the forum

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
Super Contributor
Posts: 1,636

Re: a lot of extra space when I paste to the forum

Thank you very much!!! - Linlin

Super User
Posts: 11,343

Re: a lot of extra space when I paste to the forum

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.

Super Contributor
Posts: 1,636

Re: a lot of extra space when I paste to the forum

Hi PG,

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

Thanks - Linlin

Solution
‎05-01-2012 02:09 PM
Respected Advisor
Posts: 4,925

Re: a lot of extra space when I paste to the forum

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
🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 9 replies
  • 440 views
  • 6 likes
  • 3 in conversation