<?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: Creating a Raw Data file in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Creating-a-Raw-Data-file/m-p/292938#M997</link>
    <description>&lt;P&gt;Please post your code as text...I don't want to type it out to replicate your issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm fairly certain the export is fine, your text editor is muddling it up for some reason.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try NotePad ++ instead perhaps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 20 Aug 2016 22:50:35 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-08-20T22:50:35Z</dc:date>
    <item>
      <title>Creating a Raw Data file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-a-Raw-Data-file/m-p/292933#M994</link>
      <description>&lt;P&gt;I used the following code and when I submitted, my raw data file is not in the proper order as I expected. I even used the word wrap but no use. What can be the solution?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12865i4E74E8473B08C343/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="non fixed values.png" title="non fixed values.png" /&gt;</description>
      <pubDate>Sat, 20 Aug 2016 22:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-a-Raw-Data-file/m-p/292933#M994</guid>
      <dc:creator>SamuelRajKandru</dc:creator>
      <dc:date>2016-08-20T22:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Raw Data file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-a-Raw-Data-file/m-p/292934#M995</link>
      <description>&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12866i0A5695323A2818FF/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="stress code.png" title="stress code.png" /&gt;</description>
      <pubDate>Sat, 20 Aug 2016 22:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-a-Raw-Data-file/m-p/292934#M995</guid>
      <dc:creator>SamuelRajKandru</dc:creator>
      <dc:date>2016-08-20T22:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Raw Data file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-a-Raw-Data-file/m-p/292938#M997</link>
      <description>&lt;P&gt;Please post your code as text...I don't want to type it out to replicate your issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm fairly certain the export is fine, your text editor is muddling it up for some reason.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try NotePad ++ instead perhaps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 22:50:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-a-Raw-Data-file/m-p/292938#M997</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-20T22:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Raw Data file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-a-Raw-Data-file/m-p/292976#M998</link>
      <description>data _null_;&lt;BR /&gt;	set sasuser.stress;&lt;BR /&gt;	file '/folders/myshortcuts/Desktop/stress.txt';&lt;BR /&gt;	put ID $ 1-4 Name $ 6-25 RestHR 27-29 MaxHR 31-33 RecHR 35-37&lt;BR /&gt;		TimeMin 39-40 TimeSec 42-43 Tolerance $ 45;&lt;BR /&gt;run;</description>
      <pubDate>Sun, 21 Aug 2016 10:28:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-a-Raw-Data-file/m-p/292976#M998</guid>
      <dc:creator>SamuelRajKandru</dc:creator>
      <dc:date>2016-08-21T10:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Raw Data file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-a-Raw-Data-file/m-p/292983#M999</link>
      <description>Try opening your file with Word and see whether the Unix carriage return/line feeds are respected. That is one suggestion, there is another option that you specify that you use TERMSTR=CRLF on the FILE statement as an option to have a PC carriage return/linefeed written out for the end of record mark. Check the Unix documentation for value of TERMSTR=.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Sun, 21 Aug 2016 12:22:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-a-Raw-Data-file/m-p/292983#M999</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-08-21T12:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Raw Data file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-a-Raw-Data-file/m-p/293204#M1000</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;This should show you exactly what is in the raw file.

0D0A is end of record windows CR/LF
0A is Unix end of record

It makes a difference it you ar erunning on Unix or Windows

HAVE A RAW FILE WITH BAD HEX CODES ( 0A and 0D for instance)

file c:/txt/badhex.txt

The records look fine in the log window

   AAAAAAAAAAA
BBBBBB

   AAAAAAAAAAA
BBBBBB

   AAAAAAAAAAA
BBBBBB




WANT ( A lising like this to see the bad characters like 0A and 0D in the data


 RULE:     ----+----1----+----2----+----3----+-

 1   CHAR  AAAAAAAAAAA.BBBBBB..
     ZONE  44444444444044444400
     NUMR  11111111111A222222DA

 2   CHAR  AAAAAAAAAAA.BBBBBB..
     ZONE  44444444444044444400
     NUMR  11111111111A222222DA

 3   CHAR  AAAAAAAAAAA.BBBBBB..
     ZONE  44444444444044444400
     NUMR  11111111111A222222DA


SOLUTION

* create a bad file;
data _null_;
  file "c:/txt/badhex.txt" lrecl=20 recfm=f;
   do i=1 to 3;
     txt=cats(repeat('A',10),'0A'X,repeat('B',5),'0D0A'X);
     put txt;
     putlog txt;
   end;
run;quit;

* just pick and lrecl and recfm that is close to what your record length is and
  use the code below. Then look for bad chars;

data _null_;
  infile "c:/txt/badhex.txt" recfm=f lrecl=20;
  input r20 $char20.;
  list;
run;quit;

 NOTE: The infile "c:/txt/badhex.txt" is:
       Filename=c:\txt\badhex.txt,
       RECFM=F,LRECL=20,File Size (bytes)=60,
       Last Modified=22Aug2016:13:31:11,
       Create Time=22Aug2016:13:24:00

 RULE:     ----+----1----+----2----+----3----+-

 1   CHAR  AAAAAAAAAAA.BBBBBB..
     ZONE  44444444444044444400
     NUMR  11111111111A222222DA

 2   CHAR  AAAAAAAAAAA.BBBBBB..
     ZONE  44444444444044444400
     NUMR  11111111111A222222DA

 3   CHAR  AAAAAAAAAAA.BBBBBB..
     ZONE  44444444444044444400
     NUMR  11111111111A222222DA


A better way is to use the old text editor and 'proc fslist'.
However this does not work well or at all in
(EE,EG,UE,SAS Studio)

filename fsl "c:\txt\badhex.txt' lrecl=20 recfm=f;
proc fslist file=fsl;
run;quit;

When the full screen editor comes up, you will need
a nice command line. This is where all the other editors fail.

On the command line type nums on;hex on;

You can use quite a few of the old text editor scripting commands
like find '0A'X;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Aug 2016 17:45:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-a-Raw-Data-file/m-p/293204#M1000</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2016-08-22T17:45:39Z</dc:date>
    </item>
  </channel>
</rss>

