<?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: Replace in file, universal solution. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182671#M34768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look and see if it does what you are after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't used it in a while, so it may require some amendments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2014 09:51:16 GMT</pubDate>
    <dc:creator>Scott_Mitchell</dc:creator>
    <dc:date>2014-06-03T09:51:16Z</dc:date>
    <item>
      <title>Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182665#M34762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I would like to create some macro that will replace any string in input file(actually formatted file with sas code) to any other string.&lt;/P&gt;&lt;P&gt;I quickly created small code that ,as I thought initially,will solve the task.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; replaceInFile(inFileName,outFileName,from,to);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length str strNew $&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;32767&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile &amp;amp;inFileName dsd dlm=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'0D'x&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; lrecl=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;32767&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input str;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strNew=tranwrd(str,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"&amp;amp;from"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"&amp;amp;to"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file &amp;amp;outFileName lrecl=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;32767&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put strNew;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; replaceInFile;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro simply use/in out filenames to read one file and create copy of it with replace strings.&lt;/P&gt;&lt;P&gt;Replace I made usingt tranwrd function, and it works ok&amp;nbsp; - in new file all strings that had to be replaced were actually replaced.&lt;/P&gt;&lt;P&gt;But during further tests I experienced another issues - for some files disappears formtting(start spaces or tabs) and also character ' in some cases also disppear in new file.&lt;/P&gt;&lt;P&gt;In attached file is example of such cases.&lt;/P&gt;&lt;P&gt;If you'll execute that macro for this file - new output file will looks like nigtmare - no formatting, char ' disappears for some expressions etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I hesitate if it's possible to create some general universal solution for such goals.&lt;/P&gt;&lt;P&gt;Maybe there are some ready smarter approaches for such cases?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 08:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182665#M34762</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2014-06-03T08:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182666#M34763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is just my 2p's worth.&amp;nbsp; If I had to do this, I would probably write a small VBA macro in Word and use the search/replace functionality in there.&amp;nbsp; Should be pretty simple, loop over list of files in directory, then a replace() command.&amp;nbsp; Reason is you will hit some walls within importing the text files to SAS as data and then exporting them whilst retaining formatting.&amp;nbsp; Word, which is built to handle text *should* do a better job of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also freeware out there which do a similar job: &lt;A href="http://divlocsoft.com/" title="http://divlocsoft.com/"&gt;Actual Search and Replace - Tool for Text Files&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 09:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182666#M34763</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-06-03T09:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182667#M34764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rw9,&lt;/P&gt;&lt;P&gt;Not sure if VBA will work under AIX(on Windows it works for sure).&lt;/P&gt;&lt;P&gt;I also not sure if I'll be able to install that enchanced tool for texts formatting, due security reasons:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But anyway thanks, will take a look for that text tool that you propose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 09:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182667#M34764</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2014-06-03T09:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182668#M34765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, sorry just assumed Win.&amp;nbsp; There should be something out there for your OS, found this page at a quick search:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.ibm.com/developerworks/aix/library/au-textedit.html"&gt;http://www.ibm.com/developerworks/aix/library/au-textedit.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Could just use the OS commands to search replace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 09:25:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182668#M34765</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-06-03T09:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182669#M34766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, clear.&lt;/P&gt;&lt;P&gt;So I have variant of implementation without SAS, that is nice but I still hope that maybe there is some SAS way, maybe some cool option that I just need to put in my macro and everything will work correctly:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 09:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182669#M34766</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2014-06-03T09:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182670#M34767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Come on, SAS as a streaming text editor? For all things, on a UNIX system???&lt;/P&gt;&lt;P&gt;Do you always hammer in your screws and try to eat soup with a fork?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNIX was designed as a text-handling tool. There is a host of text manipulation tools like, eg, awk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 09:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182670#M34767</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-06-03T09:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182671#M34768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look and see if it does what you are after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't used it in a while, so it may require some amendments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 09:51:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182671#M34768</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2014-06-03T09:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182672#M34769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This search string: "unix command replace text in file" is given 15M hits as it that common in Unix.&amp;nbsp; (inventing the wheel?)&lt;/P&gt;&lt;P&gt;The only exception I can think of is rewriting some dynamic web-parts where this is part of an AJAX uhh ASAX&amp;nbsp; approach &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 10:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182672#M34769</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-06-03T10:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182673#M34770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;Company is moving from Windows to AIX, so I'm new in UNIX.&lt;/P&gt;&lt;P&gt;Offcource SAS isn't best tool for seriosu file manipulations but if the goal is more-less simple why not use SAS?&lt;/P&gt;&lt;P&gt;On Windows I used VBS scripts+X command when I need to made some serious code related with file system etc., but when I had to just copy/rename etc. file I think SAS can be used.&lt;/P&gt;&lt;P&gt;I supposed that replace one word to another in file and save previous file formatting is belong to those "easier" part of tasks, but suppsoe I was wrong due all replier here advise rid of SAS for this task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 11:10:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182673#M34770</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2014-06-03T11:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182674#M34771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaap,&lt;/P&gt;&lt;P&gt;As I replied to Kurt - I split tasks related to file manipulations on two parts - simple and complicated, simple task I implement using SAS functions etc., complicated - using X command, bat files, vbs scripts etc.&lt;/P&gt;&lt;P&gt;But innitially I supposed that this concrette task belongs to simper part, du it just replace one word to another in file, but now I'm not sure that I was right, suppose will really need use some unix commands better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 11:14:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182674#M34771</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2014-06-03T11:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182675#M34772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works in AIX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sed -e's/oldttext/newtext/g' oldfile&amp;gt;newfile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command in the single quotes is what you would do manually in vi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can of course issue this command from inside SAS with the X statement or the SYSTEM() function or the CALL SYSTEM() routine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 11:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182675#M34772</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-06-03T11:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182676#M34773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VI&amp;nbsp; editor under UNIX environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 12:34:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182676#M34773</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-06-03T12:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182677#M34774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;I need to create code that will do it in loop for many files(&amp;gt;100 sas codes), so if VI editor is just similar to N++(maybe with more features) it anyway not ok due I need to apply changes to batch of files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 12:49:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182677#M34774</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2014-06-03T12:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182678#M34775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you are switching from Windows to Unix there are some attention points.&lt;/P&gt;&lt;P&gt;Desktop portable Windows tools, evaluate:&lt;/P&gt;&lt;P&gt;- Terminal usage, yes like the old mainframe days, for the shell access something like &lt;EM&gt;putty&lt;/EM&gt; and being graphical a X-server (&lt;EM&gt;moba xterm &lt;/EM&gt; 9.4) &lt;/P&gt;&lt;P&gt;- Upload/download to Windows, sftp/ftp, &lt;EM&gt;winscp &lt;/EM&gt;and &lt;EM&gt;notepad++&lt;/EM&gt; with add-ons. (compare/replace)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data conventions, get accustomed to:&lt;/P&gt;&lt;P&gt;-&amp;nbsp; the LF (Unix) and CR/LF Windows record difference. With binary transfers it could get mixed up in the wrong way.&lt;BR /&gt;- Latin1 wlatin1 differences in the encoding (single byte) and the utf8 (multiple byte) Excel Word and Html are already using utf8.&lt;BR /&gt;&amp;nbsp; Most people still working/thinking in wlatin1.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I expect you are getting EGuide delivered with the promise nothing will really change to you. (yeah..... forget that).&lt;/P&gt;&lt;P&gt;Support for your SAS usage. &lt;BR /&gt;You may be classified as a very dangerous person for the company using VBA and Windows scripting. &lt;BR /&gt;They may possible try to lock you out from all of that. You are needing a guy as platform-admin that will really will try to help you.&lt;BR /&gt;The first hurdle is the default setting of noxcmd for all SAS services,&amp;nbsp; not allowing you to access Unix.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 12:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182678#M34775</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-06-03T12:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182679#M34776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;yep, after a few tests it looks like this line solve the task, works quick and not demage any spec. character in file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 12:54:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182679#M34776</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2014-06-03T12:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182680#M34777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;Your macro looks like has more features, including one that I need, but guys here provide also solutions in one line, so I'll probably will go to study UNIX:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 12:56:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182680#M34777</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2014-06-03T12:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182681#M34778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Jaap,&lt;/P&gt;&lt;P&gt;All tasks that I made using VBA scripts wasn't related to business data etc., it was usually one time event tasks for achiving some local goals and couldn't really demage anything, plus offcource I didn't execute any vbs on production:), only development environmant.&lt;/P&gt;&lt;P&gt;For some tasks I also used Perl just becouse it really good in parsing stuff etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 13:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182681#M34778</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2014-06-03T13:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182682#M34779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is nice, you are not a newbie. It looks you have not got locked out, also nice. &lt;BR /&gt;For Perl, did you use Prxparse? &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67239/HTML/default/viewer.htm#p06i7305izsnvcn1ru9147suzyv5.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/67239/HTML/default/viewer.htm#p06i7305izsnvcn1ru9147suzyv5.htm"&gt;SAS(R) 9.4 Functions and CALL Routines: Reference, Second Edition&lt;/A&gt;&lt;BR /&gt;It is Perl string parsing stuff called from SAS &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 13:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182682#M34779</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-06-03T13:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Replace in file, universal solution.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182683#M34780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaap,&lt;/P&gt;&lt;P&gt;Yep, I used couple of SAS function that support &lt;SPAN class="emph"&gt;regular expressions - PRXChange etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="emph"&gt;On big strings it works fuster then SAS functions for working with characters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="emph"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 13:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-in-file-universal-solution/m-p/182683#M34780</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2014-06-03T13:26:03Z</dc:date>
    </item>
  </channel>
</rss>

