<?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: how to export sas dataset into text file using datastep when we have missing records in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-dataset-into-text-file-using-datastep-when-we/m-p/922678#M363323</link>
    <description>&lt;P&gt;Not sure why this should be happening if these repeated values aren't already in your source data. You could try and add lrecl=530 to your file statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file "%sysfunc(pathname(work))\test.txt" lrecl=530;
  set sashelp.class;
  if _n_ ne 3 then name2=name;
  put @1 name $char8. @512 name2 $char8.;
run;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 07:52:03 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2024-04-03T07:52:03Z</dc:date>
    <item>
      <title>how to export sas dataset into text file using datastep when we have missing records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-dataset-into-text-file-using-datastep-when-we/m-p/922671#M363317</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;Can someone help to get the proper text file ?&lt;/P&gt;&lt;P&gt;i want to export sas dataset into text file using datastep.&lt;/P&gt;&lt;P&gt;below is the code which i was using to export for 80 variables , i just added one more variable load_no in this i have missing records. because of that&amp;nbsp; my output file is not giving in proper format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=""&gt;DATA ORD_TO_BIN;
&amp;nbsp; &amp;nbsp; SET WORK.ORD_TO_BIN;
&amp;nbsp; &amp;nbsp; FILE "/sasdata/trnsp_freight_analytics/production_jobs/scv/SCV_RAW_FILE_MR_SNOW&amp;amp;sysdate9..txt";
PUT
@1 REPORT_ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$CHAR1.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@2 REPORT_DT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YYMMDD10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@12 CUST_REF&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$CHAR25.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@37 ORD_CLS_CD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$CHAR1.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@38 SRC_CUST_CD&amp;nbsp; &amp;nbsp; &amp;nbsp; $CHAR6.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@44 FROM_NAME&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $CHAR25.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@69 CUST_CD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $CHAR6.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@75 TO_NAME&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $CHAR25.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@100 SRC_CUST_TYP&amp;nbsp; &amp;nbsp; $CHAR3.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@103 CP_DIR_SHP_IND&amp;nbsp; $CHAR1.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@104 STD_DPLYTYP_LTMDAY 3.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@107 CNTR_NO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$CHAR15.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@122 STR_MATL_RQST_ID $CHAR10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@132 PRIM_PSO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $CHAR9.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@141 ID_PART&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$CHAR20.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@161 PART_TYP_ID&amp;nbsp; &amp;nbsp; &amp;nbsp;$CHAR2.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@163 MATL_RQST_QTY&amp;nbsp; &amp;nbsp;7.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@170 ORD_ENT_DT&amp;nbsp; &amp;nbsp; &amp;nbsp; YYMMDD10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@180 ORD_ENT_TM&amp;nbsp; &amp;nbsp; &amp;nbsp; TIME8.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@188 XD_ACT_DEP_DT&amp;nbsp; &amp;nbsp;YYMMDD10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@198 XD_ACT_DEP_TM&amp;nbsp; &amp;nbsp;TIME8.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@206 XD_ACT_ARVL_DT&amp;nbsp; YYMMDD10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@216 XD_ACT_ARVL_TM&amp;nbsp; TIME8.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@224 ACT_DEP_DT&amp;nbsp; &amp;nbsp; &amp;nbsp; YYMMDD10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@234 ACT_DEP_TM&amp;nbsp; &amp;nbsp; &amp;nbsp; TIME8.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@242 ACT_ARVL_DT&amp;nbsp; &amp;nbsp; &amp;nbsp;YYMMDD10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@252 ACT_ARVL_TM&amp;nbsp; &amp;nbsp; &amp;nbsp;TIME8.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@260 RCPT_ACPT_DT&amp;nbsp; &amp;nbsp; YYMMDD10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@270 RCPT_ACPT_TM&amp;nbsp; &amp;nbsp; TIME8.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@278 CMPLT_DT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; YYMMDD10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@288 CMPLT_TM&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TIME8.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@296 BIN_CAL_DAYS&amp;nbsp; &amp;nbsp; 6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@302 BIN_WRK_HRS&amp;nbsp; &amp;nbsp; &amp;nbsp;6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@308 BIN_OPN_DAYS&amp;nbsp; &amp;nbsp; 6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@314 XD_ORD_TO_SHP&amp;nbsp; &amp;nbsp;6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@320 SHP_STD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@326 SHP_DIFF&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@332 XD_TRN_TO_XDK&amp;nbsp; &amp;nbsp;6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@338 TXD_STD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@344 TXD_DIFF&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@350 XD_ARV_TO_SHP&amp;nbsp; &amp;nbsp;6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@356 XDK_STD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@362 XDK_DIFF&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@368 XD_SHP_TO_ARV&amp;nbsp; &amp;nbsp;6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@374 TRN_STD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@380 TRN_DIFF&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@386 XD_ARV_TO_BIN&amp;nbsp; &amp;nbsp;6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@392 REC_STD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@398 REC_DIFF&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@404 XD_ORD_TO_BIN&amp;nbsp; &amp;nbsp;6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@410 BIN_STD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@416 BIN_DIFF&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6.2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@422 STR_LOC_ID&amp;nbsp; &amp;nbsp; &amp;nbsp; $CHAR10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@432 PICK_LOC_ID&amp;nbsp; &amp;nbsp; &amp;nbsp;$CHAR10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@442 SHP_MATL_RQST_ID $CHAR10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@452 CASE_NO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$CHAR8.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@460 SYS_SHP_ID&amp;nbsp; &amp;nbsp; &amp;nbsp; $CHAR10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@470 XD_CRSDOCK_IND&amp;nbsp; $CHAR1.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@471 XD_SYS_SHP_ID&amp;nbsp; &amp;nbsp;$CHAR10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@481 XD_SRC_CUST_CD&amp;nbsp; $CHAR6.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@487 XD_SYS_CNTR_ID&amp;nbsp; $CHAR10.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@497 XD_CNTR_NO&amp;nbsp; &amp;nbsp; &amp;nbsp; $CHAR15.
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@512&amp;nbsp; LOAD_NO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$CHAR9.
;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;P&gt;this is how am expecting the output to be readable&amp;nbsp; but the&amp;nbsp; i am getting output as the values are replacing the missing places with the next record.. can someone help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Apr 2024 06:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-dataset-into-text-file-using-datastep-when-we/m-p/922671#M363317</guid>
      <dc:creator>Shanthi123</dc:creator>
      <dc:date>2024-04-03T06:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to export sas dataset into text file using datastep when we have missing records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-dataset-into-text-file-using-datastep-when-we/m-p/922678#M363323</link>
      <description>&lt;P&gt;Not sure why this should be happening if these repeated values aren't already in your source data. You could try and add lrecl=530 to your file statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file "%sysfunc(pathname(work))\test.txt" lrecl=530;
  set sashelp.class;
  if _n_ ne 3 then name2=name;
  put @1 name $char8. @512 name2 $char8.;
run;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 07:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-dataset-into-text-file-using-datastep-when-we/m-p/922678#M363323</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-04-03T07:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to export sas dataset into text file using datastep when we have missing records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-dataset-into-text-file-using-datastep-when-we/m-p/922718#M363336</link>
      <description>&lt;P&gt;You need to provide example data.&lt;/P&gt;
&lt;P&gt;Your comment " this is how am expecting the output to be readable&amp;nbsp; but the&amp;nbsp; i am getting output as the values are replacing the missing places with the next record". sounds a lot like&amp;nbsp; you have attempted to read the resulting file back into SAS. If that is the case, did you read the LOG and fine a note like this?&lt;/P&gt;
&lt;PRE&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
&lt;/PRE&gt;
&lt;P&gt;That would indicate you did not have one of the options such as MISSOVER or TRUNCOVER on the INFILE statement to tell SAS how to handle incomplete lines of data.&lt;/P&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-main"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;
&lt;DIV class="forum-topic-flex-article"&gt;
&lt;DIV class="forum-article"&gt;
&lt;DIV class="forum-post"&gt;
&lt;DIV id="bodyDisplay_72216a6b477166" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Apr 2024 13:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-dataset-into-text-file-using-datastep-when-we/m-p/922718#M363336</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-04-03T13:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to export sas dataset into text file using datastep when we have missing records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-dataset-into-text-file-using-datastep-when-we/m-p/922723#M363338</link>
      <description>&lt;P&gt;I do not understand what you mean.&amp;nbsp; Examples will really help clarify the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not understand what you meaning about missing records.&amp;nbsp; Do you mean the file has too few lines for the number of observations in the original dataset?&amp;nbsp; That should be impossible with the PUT statement you showed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean that the original dataset is missing some observations?&amp;nbsp; That is an independent problem from the writing a text file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you mean the values from some variables are bleeding into the columns in the text file used by another variable.&amp;nbsp; That can happen with that style of PUT statement using the&amp;nbsp;@ cursor motion and formatted variables if you miscalculate the&amp;nbsp;@ locations and the format widths.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 14:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-dataset-into-text-file-using-datastep-when-we/m-p/922723#M363338</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-04-03T14:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to export sas dataset into text file using datastep when we have missing records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-dataset-into-text-file-using-datastep-when-we/m-p/925730#M364273</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp; i was not able to attach the screenshot or data file to show. i have used CSV file to export instead of text file. am not sure why am not able to export into text. i think its because of data issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 12:19:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-dataset-into-text-file-using-datastep-when-we/m-p/925730#M364273</guid>
      <dc:creator>Shanthi123</dc:creator>
      <dc:date>2024-04-25T12:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to export sas dataset into text file using datastep when we have missing records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-dataset-into-text-file-using-datastep-when-we/m-p/925756#M364280</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/464675"&gt;@Shanthi123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp; i was not able to attach the screenshot or data file to show. i have used CSV file to export instead of text file. am not sure why am not able to export into text. i think its because of data issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;CSV is text, originally Comma Separated Values though today some seem to use it for Character Separated.&lt;/P&gt;
&lt;P&gt;The difference is the presence of the viruses that think that CSV should only be opened in spreadsheet software.&lt;/P&gt;
&lt;P&gt;You can force a CSV to open in a text file viewer such as Notepad or even the SAS editor by using a file menu in that application or right click and what ever version of "open with" another program is available.&lt;/P&gt;
&lt;P&gt;Note: if you open a CSV file in spreadsheet software and then save it then values may well have changed.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 13:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-dataset-into-text-file-using-datastep-when-we/m-p/925756#M364280</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-04-25T13:51:49Z</dc:date>
    </item>
  </channel>
</rss>

