<?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: I lose the tabs when I transfer my SAS program to winscp and same thing for the other way around in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-lose-the-tabs-when-I-transfer-my-SAS-program-to-winscp-and/m-p/970460#M46036</link>
    <description>&lt;P&gt;Most likely it is not WINSCP that is causing the issue.&amp;nbsp; Instead it is opening the file in different editors (or on different systems) that are using different definitions of where the tab stops are supposed to be placed.&amp;nbsp;&amp;nbsp;Some people might prefer that tab stops are aligned at every 8 spaces, but others might prefer 4 or even 2 spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is just one of the many reasons to NOT place physical TAB characters into your program files.&amp;nbsp; Instead just use the TAB key the same way it worked on a typewriter. It is just a command to move to the next tab stop.&amp;nbsp; Editors that understand this will fill in the spaces for you.&amp;nbsp; Then the file looks the same when viewed with a different tab stop setting.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jul 2025 20:30:27 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-07-09T20:30:27Z</dc:date>
    <item>
      <title>I lose the tabs when I transfer my SAS program to winscp and same thing for the other way around</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-lose-the-tabs-when-I-transfer-my-SAS-program-to-winscp-and/m-p/970456#M46034</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;A sas program is easier to read when it is well formatted (space and tabs).&amp;nbsp; But I am losing the tab&amp;nbsp; the tabs when I transfer my SAS program to winscp and same thing for the other way around.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to solve that issue?&amp;nbsp; See the example below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data dest2.found_agrmt_&amp;amp;genv._&amp;amp;suffix._&amp;amp;suffix2.;

 attrib 

         KEY                           label="Record to be anonymized key" 	length=$31. 	format=$char31.		informat=$char31.
		  ORGNL_SAS_DS_ROW_NBR          label="Original SAS dataset Row number"	length=8 		format=8.		 	informat=8.
		  agreement_nbr					label="Agreement Number" 				length=$20. 	format=$char20.		informat=$char20.
		  cie        					label="company cd " 				    length=$2. 		format=$char2.		informat=$char2.
          lob        					label="Line Of Business" 				length=$4. 		format=$char4.		informat=$char4.
 		  year							label="Year" 					        length=$4. 		format=$char4.		informat=$char4.
          month							label="Month" 							length=$3.  	format=$char3.		informat=$char3.		  
		  libname					    label="path" 							length=$100.	format=$char100.    informat=$char100.
		  filename					    label="Dataset Name" 					length=$25. 	format=$char25.		informat=$char25.
		  company_cd                    label="Company CD"                      length=$1. 	    format=$char1. 	    informat=$char1. 
		  policy_expiry_date            label="Policy Expiry Date"              length=8        format=yymmdd10.    informat=yymmdd10.

  AGREEMENT_NBR_DR    	 		label="Agreement Number Data Retention" length=$25. 	format=$char25. 	informat=$char25.
		  LINE_OF_BUSINESS				label="Line of Business" 				length=$3.  	format=$char3.  	informat=$char3.
		  PROVINCE       				label="Province" 						length=$10. 	format=$char10. 	informat=$char10.
		  LEGACY_UNDERWRITING_COMPANY 	label="Legacy Underwriting Company" 	length=$10.	    format=$char10.     informat=$char10.
		  UNDERWRITING_COMPANY       	label="Underwriting Company" 			length=$10. 	format=$char10. 	informat=$char10.
		  DISTRIBUTOR_NUMBER			label="Distributor Number" 				length=$10. 	format=$char10. 	informat=$char10.
		  DISTRIBUTOR_NUMBER_SRC	    label="Distributor Number Source" 		length=$10. 	format=$char10. 	informat=$char10.
		  SOURCE_SYSTEM 	 			label="Source System"					length=$15. 	format=$char15. 	informat=$char15.
		  DATASOURCE_BACKEND_REFERENCE	label="Data Source Backend Reference"	length=$10. 	format=$char10. 	informat=$char10.
		  LAST_TERM_EFFECTIVE_DATE    	label="Last Term Effective Date" 		length=8 		format=YYMMDD10. 	informat=YYMMDD10.
		  LAST_TERM_EXPIRY_DATE 		label="Last Term Expiry Date" 			length=8		format=YYMMDD10. 	informat=YYMMDD10.
		  CONTRACT_UUID					label="Contract UUID" 					length=$36. 	format=$char36. 	informat=$char36.
   ;
stop;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please note that the format is worst in SAS EG or in winscp&lt;BR /&gt;&lt;BR /&gt;How to solve that issue?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 19:18:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-lose-the-tabs-when-I-transfer-my-SAS-program-to-winscp-and/m-p/970456#M46034</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2025-07-09T19:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: I lose the tabs when I transfer my SAS program to winscp and same thing for the other way around</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-lose-the-tabs-when-I-transfer-my-SAS-program-to-winscp-and/m-p/970459#M46035</link>
      <description>&lt;P&gt;Why would WINSCP do anything with tab characters?&amp;nbsp; I have never seen it do anything like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the old days when using FTP instead of SFTP is was important to indicate whether you wanted the file copied as BINARY or TEXT.&amp;nbsp; Since Windows and Unix used different character string to mark the end of lines in text files using the wrong one could result in corruption of the file.&amp;nbsp; SFTP just uses binary copies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I have never seen anything in WinSCP (or other file copy tools) that would effect TAB characters.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 20:06:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-lose-the-tabs-when-I-transfer-my-SAS-program-to-winscp-and/m-p/970459#M46035</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-07-09T20:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: I lose the tabs when I transfer my SAS program to winscp and same thing for the other way around</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-lose-the-tabs-when-I-transfer-my-SAS-program-to-winscp-and/m-p/970460#M46036</link>
      <description>&lt;P&gt;Most likely it is not WINSCP that is causing the issue.&amp;nbsp; Instead it is opening the file in different editors (or on different systems) that are using different definitions of where the tab stops are supposed to be placed.&amp;nbsp;&amp;nbsp;Some people might prefer that tab stops are aligned at every 8 spaces, but others might prefer 4 or even 2 spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is just one of the many reasons to NOT place physical TAB characters into your program files.&amp;nbsp; Instead just use the TAB key the same way it worked on a typewriter. It is just a command to move to the next tab stop.&amp;nbsp; Editors that understand this will fill in the spaces for you.&amp;nbsp; Then the file looks the same when viewed with a different tab stop setting.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 20:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-lose-the-tabs-when-I-transfer-my-SAS-program-to-winscp-and/m-p/970460#M46036</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-07-09T20:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: I lose the tabs when I transfer my SAS program to winscp and same thing for the other way around</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-lose-the-tabs-when-I-transfer-my-SAS-program-to-winscp-and/m-p/970462#M46037</link>
      <description>&lt;P&gt;You have a mixture of tabs and spaces which causes the inconsistent alignment.&amp;nbsp; I like to set my editor to insert spaces for tabs and try to convert any tabs that may be copied from external sources, to spaces.&amp;nbsp; I like tab stops every 3 spaces.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The picture below is your file viewed in ultra-edit with view options to show tabs, spaces, and line endings.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 998px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108233iA5FE57528A571147/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 21:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-lose-the-tabs-when-I-transfer-my-SAS-program-to-winscp-and/m-p/970462#M46037</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2025-07-09T21:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: I lose the tabs when I transfer my SAS program to winscp and same thing for the other way around</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-lose-the-tabs-when-I-transfer-my-SAS-program-to-winscp-and/m-p/970509#M46038</link>
      <description>&lt;P&gt;Concur with what the others said. Set your editor so that it replaces the tabs with spaces whenever tabs are entered. This also prevents the effects of different tab-width settings on different systems.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 08:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-lose-the-tabs-when-I-transfer-my-SAS-program-to-winscp-and/m-p/970509#M46038</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-07-10T08:46:28Z</dc:date>
    </item>
  </channel>
</rss>

