<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Rearrange A Column Of Text In A Particular Way in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788046#M251881</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;, the error I received above came from:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;want=shape(Text_Lines,0,4);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I tried the procedure you provided with other text files, however, and all went perfectly.&amp;nbsp; Thus, it seems there was something about that one large text file that caused the problem.&amp;nbsp; Perhaps no approach works in all cases, hmmm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jan 2022 23:07:41 GMT</pubDate>
    <dc:creator>NKormanik</dc:creator>
    <dc:date>2022-01-02T23:07:41Z</dc:date>
    <item>
      <title>Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/787980#M251853</link>
      <description>&lt;P&gt;Happy New Year, Folks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Say we have the following 'various text lines' in a single column:&lt;/P&gt;
&lt;PRE&gt;a&lt;BR /&gt;b&lt;BR /&gt;c&lt;BR /&gt;d&lt;BR /&gt;e&lt;BR /&gt;f&lt;BR /&gt;g&lt;BR /&gt;h&lt;/PRE&gt;
&lt;P&gt;I need to get the long column (10,000 such lines as above) into the following form:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;a b c d
e f g h&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Always four lines.&amp;nbsp; Lines 2-4 need to shift up to go beside line 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I may end up trying to get this done in some text-based program.&amp;nbsp; Perhaps somehow using RegEx.&amp;nbsp; But wondering if SAS can do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks much!&lt;/P&gt;
&lt;P&gt;Nicholas Kormanik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jan 2022 09:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/787980#M251853</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2022-01-01T09:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/787983#M251855</link>
      <description>&lt;P&gt;It is IML things, if you have it .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data have;
input have $ ;
cards;
a
b
c
d
e
f
g
h
;

proc iml;
use have;
read all var {have};
close;

want=shape(have,0,4);

print want;

create want from want;
append from want;
close;
quit;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Jan 2022 10:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/787983#M251855</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-01T10:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/787984#M251856</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input have $ ;
cards;
a
b
c
d
e
f
g
h
;

data want;
   set have;
   array v{*} $ v1 - v4;

   m = mod(_N_ - 1, 4) + 1;
   v[m] = have;
   if m = 4;

   retain v:;
   keep v:;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Jan 2022 11:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/787984#M251856</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-01-01T11:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/787985#M251857</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one two three four;
	set have;
	if mod(_n_,4)=1 then output one;
	else if mod(_n_,4)=2 then output two;
	else if mod(_n_,4)=3 then output three;
	else if mod(_n_,4)=0 then output four;	
run;
data want;
	merge one(rename=(text=text1)) two(rename=(text=text2))
         three(rename=(text=text3)) four(rename=(text=text4));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As I always do with others,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22691"&gt;@NKormanik&lt;/a&gt;, I feel compelled to question why a wide data set is better than a long data set. I guess it depends on what the next analysis is, which you don't say, but for many situations this re-arranging of your data set only makes the next steps harder.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jan 2022 11:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/787985#M251857</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-01T11:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/787988#M251858</link>
      <description>If you really have text, just input the variables:&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;input var1 $ var2 $ var3 $ var4 $ ;&lt;BR /&gt;datalines;&lt;BR /&gt;a&lt;BR /&gt;b&lt;BR /&gt;c&lt;BR /&gt;d&lt;BR /&gt;e&lt;BR /&gt;f&lt;BR /&gt;g&lt;BR /&gt;h&lt;BR /&gt;;</description>
      <pubDate>Sat, 01 Jan 2022 17:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/787988#M251858</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-01-01T17:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/787989#M251859</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input col $ ;
cards;
a
b
c
d
e
f
g
h
;
run;


data want;
array var[4] $ ;
	do x = 1 by 1 until( done | x &amp;gt; 3);
		set have end=done;
		var[x] = col;
	end;
output;	
drop x col;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Jan 2022 17:15:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/787989#M251859</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2022-01-01T17:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788012#M251864</link>
      <description>Paige, I'll answer you first, even though I haven't yet tried any of the offered solutions.&lt;BR /&gt;&lt;BR /&gt;After getting the 'alpha-numeric text lines' into the proper arrangement, I'll have to edit out various extraneous 'strings' (such as "or Missing", "*", etc.&lt;BR /&gt;&lt;BR /&gt;Then I'll import the whole thing into a SAS dataset, each then-existing string a variable, delimited by spaces.&lt;BR /&gt;</description>
      <pubDate>Sat, 01 Jan 2022 23:58:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788012#M251864</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2022-01-01T23:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788016#M251865</link>
      <description>&lt;P&gt;As others have shown, read them in as 4 per row. I use the / to explicitly indicate that you're reading from a new line. You can implicitly use the MISSOVER option as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input var1 $
/var2 $
/var3 $
/var4 $; 
cards;
a
b
c
d
e
f
g
h
;;;;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Jan 2022 03:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788016#M251865</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-02T03:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788017#M251866</link>
      <description>&lt;P&gt;Well, I didn't need to go past the very first suggestion, that of&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;.&amp;nbsp; As always, thank YOU so much.&amp;nbsp; And thanks to all who so quickly contributed... on New Year's Day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For posterity, here's my code.&amp;nbsp; Any improvements, please advise:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sas_1.parameters_long;
infile "C:\2\parameters (long).txt" truncover ;
input Text_Lines $200.;
run;

proc iml;
use sas_1.parameters_long;
read all var {Text_Lines};
close;

want=shape(Text_Lines,0,4);

* print sas_1.parameters_long;

create sas_1.parameters_long_4_across from want;
append from want;
close;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seems like an enormous task, so easily accomplished.&amp;nbsp; Unreal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 04:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788017#M251866</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2022-01-02T04:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788018#M251867</link>
      <description>&lt;P&gt;Well, I'm back already.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with another file, and received an error message.&amp;nbsp; I thought I made all the appropriate changes.&amp;nbsp; "long" --&amp;gt; "short".&amp;nbsp; Everything else remains exactly the same.&amp;nbsp; What am I missing??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;10   proc iml;
NOTE: IML Ready
11   use sas_1.parameters_short;
12   read all var {Text_Lines};
13   close;
NOTE: Closing SAS_1.PARAMETERS_SHORT
14
15   want=shape(Text_Lines,0,4);
ERROR: (execution) Invalid operand to operation.

 operation : SHAPE at line 15 column 11
 operands  : Text_Lines, *LIT1002, *LIT1003
Text_Lines 1.84E7 rows      1 col     (character, size 200)

*LIT1002      1 row       1 col     (numeric)

         0

*LIT1003      1 row       1 col     (numeric)

         4

 statement : ASSIGN at line 15 column 1
16
17   * print sas_1.parameters_short;
18
19   create sas_1.parameters_short_4_across from want;
ERROR: Matrix want has not been set to a value.

 statement : CREATE at line 19 column 1
20   append from want;
ERROR: No data set is currently open for output.

 statement : APPEND at line 20 column 1
21   close;
22   quit;
NOTE: Exiting IML.
NOTE: The SAS System stopped processing this step because of errors.

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Jan 2022 07:01:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788018#M251867</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2022-01-02T07:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788022#M251870</link>
      <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/223452"&gt;@r_behata&lt;/a&gt;&amp;nbsp; have already given you good solution .&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 09:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788022#M251870</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-02T09:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788023#M251871</link>
      <description>&lt;P&gt;If you really want IML code. try this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input have $ ;
cards;
a
b
c
d
e
f
g
h
i
;

proc iml;
use have;
read all var {have};
close;

want=shape(have,0,4,blankstr(nleng(have)));

print want;

create want from want;
append from want;
close;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Jan 2022 09:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788023#M251871</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-02T09:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788024#M251872</link>
      <description>&lt;P&gt;Here is a question for&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;Why I have to use&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;want=shape(have,0,4,blankstr(nleng(have)));
&lt;/PRE&gt;
&lt;P&gt;to make it work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't use&lt;/P&gt;
&lt;PRE&gt;want=shape(have,0,4,blankstr(4));
&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;want=shape(have,0,4,' ');
&lt;/PRE&gt;
&lt;P&gt;or event&lt;/P&gt;
&lt;PRE&gt;want=shape(have,0,4);
&lt;/PRE&gt;
&lt;P&gt;I think IML should enhance itself to make its language more convenience to use .&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 10:06:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788024#M251872</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-02T10:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788046#M251881</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;, the error I received above came from:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;want=shape(Text_Lines,0,4);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I tried the procedure you provided with other text files, however, and all went perfectly.&amp;nbsp; Thus, it seems there was something about that one large text file that caused the problem.&amp;nbsp; Perhaps no approach works in all cases, hmmm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 23:07:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788046#M251881</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2022-01-02T23:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788073#M251898</link>
      <description>&lt;P&gt;I found you need specify both ncol and nrow to make it work.&lt;/P&gt;
&lt;PRE&gt;data have;
input have $ ;
cards;
a
b
c
d
e
f
g
h
i
j
;

proc iml;
use have;
read all var {have};
close;

want=shape(have,3,4);

print want;

create want from want;
append from want;
close;
quit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want use 0 to let IML guess nrow, then you need specify the third argument(Padding value which &lt;STRONG&gt;MUST&lt;/STRONG&gt; have the &lt;STRONG&gt;same length&lt;/STRONG&gt; of HAVE matrix ) ， that is really weird I think it is (LOG didn't imply this problem).&lt;/P&gt;
&lt;PRE&gt;data have;
input have $ ;
cards;
a
b
c
d
e
f
g
h
i
j
;

proc iml;
use have;
read all var {have};
close;

want=shape(have,0,4,'        ');  /*here padding 8 blanks which is the same length as string HAVE*/

print want;

create want from want;
append from want;
close;
quit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 09:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788073#M251898</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-03T09:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788074#M251899</link>
      <description>&lt;PRE&gt;want=shape(have,0,4,blankstr(nleng(have)));&lt;/PRE&gt;
&lt;P&gt;This could "&lt;SPAN&gt;works in all cases" .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 09:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788074#M251899</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-03T09:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788158#M251937</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22691"&gt;@NKormanik&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Paige, I'll answer you first, even though I haven't yet tried any of the offered solutions.&lt;BR /&gt;&lt;BR /&gt;After getting the 'alpha-numeric text lines' into the proper arrangement, I'll have to edit out various extraneous 'strings' (such as "or Missing", "*", etc.&lt;BR /&gt;&lt;BR /&gt;Then I'll import the whole thing into a SAS dataset, each then-existing string a variable, delimited by spaces.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;My question when I see such specific words described as "extraneous" is why they were read into the data set in the first place? A custom informat can set specific values when read as missing. I have several of those because of people that create data with such text in it.&lt;/P&gt;
&lt;P&gt;And I am really unsure why grouping the values by 4 first is any improvement before attempting such. Especially since the "Then I'll import" seems to imply a "write this mangled data out to a text file and then read it back into SAS". To run any approach to manipulate the data into that shape from SAS means you have a SAS data set. The out and in approach sounds like added work for little actual gain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps a more complete example of your data set with sensitive values replaced with random values and what you would expect from it.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 17:52:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788158#M251937</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-03T17:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788199#M251950</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;Paige.&amp;nbsp; I appreciate your comments.&amp;nbsp; All well warranted, in my opinion.&amp;nbsp; (I could see your eyes rolling, justifiably.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I'm importing is actually output from another SAS procedure.&amp;nbsp; That output includes the 'extraneous' characters/strings.&amp;nbsp; There may be a more direct way of capturing said output, possibly directly to a SAS dataset.&amp;nbsp; But I didn't surmise a way, as of yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I first wanted to get the lot into the four-across format to see if my idea was on track.&amp;nbsp; But, yes, as you point out, if the idea works, then prior to the four-across conversion would be the best time to edit out extraneous strings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 23:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788199#M251950</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2022-01-03T23:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788201#M251951</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;, greatly appreciate your attention.&amp;nbsp; You're a saint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As said, your initial solution works perfectly.&amp;nbsp; But if it stops working for some reason I'll try one of your additional ideas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 23:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788201#M251951</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2022-01-03T23:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrange A Column Of Text In A Particular Way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788206#M251953</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22691"&gt;@NKormanik&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;Paige.&amp;nbsp; I appreciate your comments.&amp;nbsp; All well warranted, in my opinion.&amp;nbsp; (I could see your eyes rolling, justifiably.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I'm importing is actually output from another SAS procedure.&amp;nbsp; That output includes the 'extraneous' characters/strings.&amp;nbsp; There may be a more direct way of capturing said output, possibly directly to a SAS dataset.&amp;nbsp; But I didn't surmise a way, as of yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I first wanted to get the lot into the four-across format to see if my idea was on track.&amp;nbsp; But, yes, as you point out, if the idea works, then prior to the four-across conversion would be the best time to edit out extraneous strings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It might be a good idea to share the code for the procedure generating the output. There is almost always a way to get the output into a data set directly once we know what it is. Even Procs Report and Tabulate generate data sets though typically a tad cumbersome to work with.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 23:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrange-A-Column-Of-Text-In-A-Particular-Way/m-p/788206#M251953</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-03T23:34:12Z</dc:date>
    </item>
  </channel>
</rss>

