<?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 can I move a block of data multiple positions to the right based on conditional (not entire column)? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366360#M87143</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read in&amp;nbsp;some data from a CSV, and part of it is incorrectly aligned (I think values from the first 21 columns are deleted&amp;nbsp;when it's extracted from&amp;nbsp;a dashboard, for some reason). More specifically,&amp;nbsp;a block of the observations are being&amp;nbsp;read in as though the value for the 22nd variable is actually the value for the 1st variable, etc. (the values for variables 1-21 have been deleted somewhere along the line). Is there any way that I can shift those values&amp;nbsp;back to their correct placement in columns 22 onward? Obviously, I would prefer&amp;nbsp;to use as much of the data as possible. So, I'm thinking I'd like to write syntax that does something like (region is column b):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if region not in (1,2,3,4,5,6,7,8,9,10,11,12,13) then [SOMEHOW-SHIFT-RIGHT-21-COLUMNS];&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any suggestions as to what goes in the bracketed space?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've included a screenshot to better explain the problem with the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!!!&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13931i5CF7E172900CD84B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="lic003.PNG" title="lic003.PNG" /&gt;</description>
    <pubDate>Mon, 12 Jun 2017 23:35:40 GMT</pubDate>
    <dc:creator>kjowers</dc:creator>
    <dc:date>2017-06-12T23:35:40Z</dc:date>
    <item>
      <title>can I move a block of data multiple positions to the right based on conditional (not entire column)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366360#M87143</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read in&amp;nbsp;some data from a CSV, and part of it is incorrectly aligned (I think values from the first 21 columns are deleted&amp;nbsp;when it's extracted from&amp;nbsp;a dashboard, for some reason). More specifically,&amp;nbsp;a block of the observations are being&amp;nbsp;read in as though the value for the 22nd variable is actually the value for the 1st variable, etc. (the values for variables 1-21 have been deleted somewhere along the line). Is there any way that I can shift those values&amp;nbsp;back to their correct placement in columns 22 onward? Obviously, I would prefer&amp;nbsp;to use as much of the data as possible. So, I'm thinking I'd like to write syntax that does something like (region is column b):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if region not in (1,2,3,4,5,6,7,8,9,10,11,12,13) then [SOMEHOW-SHIFT-RIGHT-21-COLUMNS];&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any suggestions as to what goes in the bracketed space?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've included a screenshot to better explain the problem with the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!!!&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13931i5CF7E172900CD84B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="lic003.PNG" title="lic003.PNG" /&gt;</description>
      <pubDate>Mon, 12 Jun 2017 23:35:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366360#M87143</guid>
      <dc:creator>kjowers</dc:creator>
      <dc:date>2017-06-12T23:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366369#M87147</link>
      <description>&lt;P&gt;Is the shifting in the original CSV file or only in the sas dataset, as the result of importing ?&lt;/P&gt;
&lt;P&gt;What code did you use to import the csv file ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally I would use arrays and DO loops to shift data, but it seems that some of the columns are numeric&lt;/P&gt;
&lt;P&gt;while others are alphanumeric, and you cannot define array of mixed data types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 00:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366369#M87147</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-06-13T00:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366379#M87150</link>
      <description>&lt;P&gt;I suggest fixing this upstream, ie when you export/import into SAS data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you imported a CSV or text file, make sure your import specifies TRUNCOVER to avoid these issues. The default isn't usually what people want.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 01:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366379#M87150</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-13T01:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366386#M87152</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good question. The issue&amp;nbsp;with the data exists prior to importing it into&amp;nbsp;SAS and, unfortunately, the data source is resistant to change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be more than open to&amp;nbsp;treating all of the variables as&amp;nbsp;character rather than numeric. Ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 02:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366386#M87152</guid>
      <dc:creator>kjowers</dc:creator>
      <dc:date>2017-06-13T02:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366387#M87153</link>
      <description>&lt;P&gt;Unfortunately, changing the data upstream isn't an option. This is how I receive it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use missover, not truncover. If I switch to truncover, it throws off even more of the columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 02:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366387#M87153</guid>
      <dc:creator>kjowers</dc:creator>
      <dc:date>2017-06-13T02:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366389#M87154</link>
      <description>&lt;P&gt;Can you attach a sample of the original CSV and how it should be read in/look?&lt;/P&gt;
&lt;P&gt;Or mock up a representative sample.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Working off theory is slower, if you post some data it makes it easier for us to help you.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 02:50:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366389#M87154</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-13T02:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366404#M87158</link>
      <description>&lt;P&gt;Something like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file "%sysfunc(pathname(work))\t.txt";
  put '0' @;
  do i=1 to 29; 
    put ',1' @;
  end;
  put ;
  put 'anniv' @;
  do i=1 to 9; 
    put ',2' @;
  end;
  put ;
run;

data WANT;
  infile "%sysfunc(pathname(work))\t.txt" dsd dlm=',';
  input @;
  FIRSTWORD=scan(_infile_,1,',');
  if ^notdigit(compress(FIRSTWORD)) then  
    input a1-a20  @; 
  input a21-a30  ; 
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Modify to suit your data.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 06:11:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366404#M87158</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-13T06:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366645#M87242</link>
      <description>&lt;P&gt;Sure thing!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just as a reminder, this is how the data is delivered to me. I REALLY wish I could change the way it's&amp;nbsp;compiled upstream, but I can't.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached&amp;nbsp;is a sample of records. There are 3 types of records:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Records 1 - 4: correct placement of values&lt;/LI&gt;&lt;LI&gt;Records 5 - 8: data in column A need to be shifted right to column V&lt;/LI&gt;&lt;LI&gt;Records 9 - 12: data in column A are missing, so the data in column B need to be shifted right to column W&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Because of the shifted values, I might have&amp;nbsp;to treat all variables as character variables and then reformat them later. That's totally okay, as long as I get the data in the right columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 15:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366645#M87242</guid>
      <dc:creator>kjowers</dc:creator>
      <dc:date>2017-06-13T15:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366647#M87243</link>
      <description>&lt;P&gt;Thanks. That's an interesting possibility. Unfortunately, the misplaced data in column start with different words/symbols/numbers (or are missing), so it might get tedious. I've attached a sample dataset to another post, but I'll put it here, too,&amp;nbsp;for convenience's sake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 15:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366647#M87243</guid>
      <dc:creator>kjowers</dc:creator>
      <dc:date>2017-06-13T15:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366729#M87255</link>
      <description>&lt;P&gt;You may start with attached code, demostrating shifting of variables.&lt;/P&gt;
&lt;P&gt;Anyway I see some issues:&lt;/P&gt;
&lt;P&gt;- shifted variables shall be missing ( if var1 is shiofted to var10 then all var1-var9 will be missing)&lt;/P&gt;
&lt;P&gt;- shifting can overide existing values in target variable&lt;/P&gt;
&lt;P&gt;- in my code I checked for _N_, the observation number. You may need change it and adapt to other rules.&lt;/P&gt;
&lt;P&gt;- finally, you may need to convert some variables from character type to numeric type&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename sample '/folders/myshortcuts/My_Folders/flat/move_block_data.csv';

/* step (1) assuming first rows are full and ok, shifting no needed */
/* use proc import to get variables names as one row data */
options obs=1;
proc import datafile=sample dbms=dlm out=sample replace; 
  delimiter='|';
  getnames=no; 
run;

/* step (2) create a macro variable with list of data variables */
data _NULL_;
 set sample end=eof;
     length varlist $1000;
     retain varlist;
     array vx $ _all_;
     do i=1 to dim(vx)-1;
        varx = translate(strip(vx(i)),'_',' ');
        len = length(varx);
        put i= len= varx=;
        varlist = strip(varlist) ||' '|| varx;
     end;
     if eof then call symput('vars',strip(varlist));
run;
%put &amp;amp;vars;
&lt;BR /&gt;/* step (3) import data and shift according to rules */
options obs=max firstobs=2;
data test;
  format &amp;amp;vars $40.;  /* adapt to maximum var length */
  infile sample dlm='|' dsd missover;
  input &amp;amp;vars;
  
  array vx $ &amp;amp;vars;
  /* shifting data */
  if 5 le _N_ le 12 then do;
     do i=dim(vx) to 22 by -1;
        j = i-22+1;
        vx(i) = vx(j);
        vx(j) = ' ';
     end;
  end;    
run;



&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Jun 2017 18:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366729#M87255</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-06-13T18:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366742#M87257</link>
      <description>&lt;P&gt;Wow! Thank you so much! I'll give this a shot! Missingness and conversion are okay, and I was wondering about overriding values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 19:23:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366742#M87257</guid>
      <dc:creator>kjowers</dc:creator>
      <dc:date>2017-06-13T19:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366809#M87278</link>
      <description>&lt;P&gt;Same thing really no?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file "%sysfunc(pathname(work))\t.txt" lrecl=800;
put 'Provider ID|Facility Last Name|Region|Provider Referral Indicator|Street Number Facility|Address 1 Facility|Address 2 Facility|City Facility|State Code Facility|Postal Code Facility|Street Number Mailing|Address 1 Mailing|Address 2 Mailing|City Mailing|State Code Mailing|Postal Code Mailing|Telecom Number|Provider Schools List|License Months Operation|License Days Operation|Provider Total Capacity|License Restrictions|Provider County Name|Provider Type Report Label|Start Time|End Time|Infants Capacity|Toddlers Capacity|Preschool Capacity|Schoolage Capacity|Special Needs Capacity|Overnight Capacity|Operator Party ID|Operator Name|Provider Artifact Preference|License Number|Initial Operating Date';
put '1|Child Care Center A|1|0|1|Main St||City|ST|12345|1|Main St||City|ST|12345|1234567890|Main St Elementary|January to December|Monday to Friday|63|NO MORE THAN 8 CHILDREN UNDER 30 MONTHS OF AGE MAY BE PRESENT AT ONE TIME. YOUR ANNIVERSARY MONTH IS APRIL.|County1|Licensed Child Care Center|6:30:00|18:00:00|0|0|0|0|0|0|123456||4|123456|5/21/2003 0:00                                                                                                                                                                                              ';
put '2|Child Care Center B|1|0|2|Main St||City|ST|12345|2|Main St||City|ST|12345|1234567890||January to December|Monday to Friday|117|ANNIVERSARY MONTH IS AUGUST. |County2|Licensed Child Care Center|7:00:00|18:00:00|6|12|59|40|0|0|234567||4|234567|8/30/2002 0:00                                                                                                                                                                                                                                                                                    ';
put '3|Child Care Center C|1|0|3|Main St||City|ST|12345|3|Main St||City|ST|12345|1234567890||January to December|Monday to Friday|117|ANNIVERSARY MONTH IS AUGUST. |County3|Licensed Child Care Center|7:00:00|18:00:00|6|12|59|40|0|0|345678||4|345678|8/30/2002 0:00                                                                                                                                                                                                                                                                            ';
put '4|Child Care Center D|1|0|4|Main St||City|ST|12345|4|Main St||City|ST|12345|1234567890|Main St Elementary|August to June|Monday to Friday|90|Studio Capacity (45) and Party Room Capacity (33) Approved as alternate space. Center may operate from 12:30 to 6:15 pm only when school dismissed early; Outside play restricted to fenced area; Center may operate some full days when school is closed. Anniversary Month is February.|County4|Licensed Child Care Center|7:00:00|18:30:00|0|0|0|90|0|0|456789||4|456789|3/3/2004 0:00';
put '"      *** Anniversary month is September ***"""|County5|Licensed Child Care Center|6:00:00|18:00:00|12|9|22|0|0|0|567890||4|567890|10/26/2012 0:00|||||||||||||||||||||      ';
put '"   ** Anniversary month is August**             """|County6|Licensed Child Care Center|7:30:00|17:30:00|0|0|19|0|0|0|678901|||678901|9/18/2014 0:00|||||||||||||||||||||   ';
put '" """|County7|Licensed Child Care Center|7:00:00|18:00:00|0|0|0|30|0|0|789012||4|789012|4/1/1987 0:00|||||||||||||||||||||       ';
put '" """|County8|Licensed Child Care Center|6:30:00|18:30:00|66|6|118|0|0|0|890123||4|890123|6/7/1996 0:00|||||||||||||||||||||    '
put '|County9|Licensed Child Care Center|7:00:00|5:30:00|3|3|17|5|0|0|901234|||901234|3/10/2009 0:00|||||||||||||||||||||          ';
put '|County10|Licensed Child Care Center|6:00:00|23:00:00|3|3|6|0|0|0|112345||4|112345|1/17/2003 0:00|||||||||||||||||||||      ';
put '|County11|Licensed Child Care Center|6:00:00|23:30:00|2|0|6|4|0|0|223456||4|223456|10/15/1998 0:00|||||||||||||||||||||   ';
put '|County12|Licensed Child Care Center|6:30:00|18:00:00|18|9|52|0|0|0|334567||4|334567|8/23/2001 0:00|||||||||||||||||||||';
run;

data WANT;
  infile "%sysfunc(pathname(work))\t.txt" dsd dlm='|' lrecl=800 firstobs=2 pad missover;
  input @;
  FIRSTWORD=scan(_infile_,1,'|');
  if ^notdigit(compress(FIRSTWORD)) then  
    input (a1-a21) (: $200.) @; 
  input (a22-a40) (: $200.) ; 
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/9408iCBDD683FA5B2B1AE/image-size/original?v=1.0&amp;amp;px=-1" alt="aaa1.PNG" title="aaa1.PNG" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You just have to customise the input statements.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 00:46:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366809#M87278</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-14T00:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366824#M87281</link>
      <description>&lt;P&gt;Thanks! Unfortunately there are several hundred of those records. I'll definitely keep this in my hat for smaller issues!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 02:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366824#M87281</guid>
      <dc:creator>kjowers</dc:creator>
      <dc:date>2017-06-14T02:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366829#M87284</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132722"&gt;@kjowers&lt;/a&gt;&amp;nbsp;I don't see how hundreds of records make a difference.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 03:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366829#M87284</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-14T03:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366831#M87286</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;- I'm just suggesting that customizing the "put" statement for several hundred records could&amp;nbsp;take more time than I have to spend.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 04:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366831#M87286</guid>
      <dc:creator>kjowers</dc:creator>
      <dc:date>2017-06-14T04:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366833#M87287</link>
      <description>&lt;P&gt;???&lt;/P&gt;
&lt;P&gt;The input statement is the same for all records. It only has to be customised once&amp;nbsp;to describe all the columns.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 04:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366833#M87287</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-14T04:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366835#M87289</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132722"&gt;@kjowers&lt;/a&gt;&amp;nbsp;The first data step in&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;solution is to generate the sample file to read. You do not need it, point to your file directly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 04:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366835#M87289</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-14T04:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366843#M87291</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;! I think that's where my concern was coming in. I saw all of the statements and my mind blanked on what they were actually for! Much appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 05:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/366843#M87291</guid>
      <dc:creator>kjowers</dc:creator>
      <dc:date>2017-06-14T05:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/367180#M87379</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;. I misread the OP's answer (input instead of put) as it never&amp;nbsp;occurred to me that s/he could have not even looked at the provided&amp;nbsp;code. I never ceases to amaze me how people find it normal to ask for help, but won't even take the time to explain their problem properly or provide simple sample data or read the answers. You have much more&amp;nbsp;patience than I do (Hence your deserved Grand Advisor status!)&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 23:32:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/367180#M87379</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-14T23:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: can I move a block of data multiple positions to the right based on conditional (not entire colu</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/367184#M87381</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;Depends on the hour of the day TBH, by 10PM my meds have worn off &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 23:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-I-move-a-block-of-data-multiple-positions-to-the-right-based/m-p/367184#M87381</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-14T23:42:12Z</dc:date>
    </item>
  </channel>
</rss>

