<?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: $ATE9 format , column change from numeric to char without asking to do it in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913364#M360006</link>
    <description>&lt;P&gt;Follow up question, what happens when you run:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  set enginal.ApplicationDecisions(dbsastype=(applicationDate='DATE'));
run;

proc sql;
create table testSQL as
select applicationDate
from enginal.ApplicationDecisions(dbsastype=(applicationDate='DATE'))
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2024 10:49:29 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2024-01-29T10:49:29Z</dc:date>
    <item>
      <title>$ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913317#M359986</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;In data set&amp;nbsp;enginal.ApplicationDecisions&amp;nbsp; &amp;nbsp;there is a column called&amp;nbsp;&amp;nbsp;applicationDate.&lt;/P&gt;
&lt;P&gt;I run proc contents to see columns&amp;nbsp; content information.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=enginal.ApplicationDecisions ;Run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and I see that column applicationDate is numeric (SAS date)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ronein_0-1706505263949.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93035i181C74C7011A9879/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ronein_0-1706505263949.png" alt="Ronein_0-1706505263949.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then I run another query (Merge)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select a.appIdentity,a.applicationDate 
from enginal.ApplicationDecisions as a
left join enginal.ACCOUNT as  b 
on A.appIdentity=B.appIdentity
where b.applicationAccountIndicator = 1 and a.applicationDate between '01JAN2024'd and '10JAN2024'd
;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and in the result data set (Want)&amp;nbsp; column&amp;nbsp;applicationDate is defined as character with strange format $ATE9.&lt;/P&gt;
&lt;P&gt;I run proc contents&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=want;Run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ronein_1-1706505509361.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93036i8FCEBC0D24429B1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ronein_1-1706505509361.png" alt="Ronein_1-1706505509361.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My question-&lt;/P&gt;
&lt;P&gt;How did it happen that column attribute was changed from numeric(SAS date) into char?&lt;/P&gt;
&lt;P&gt;In source data set column ApplicationDate didnt have any user defined format (The format was date9) and in want data set format is $ATE9 but I haven't define it in any code. How can it happen???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 05:20:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913317#M359986</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-29T05:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913318#M359987</link>
      <description>&lt;P&gt;What type of libref is&amp;nbsp;enginal ?&lt;/P&gt;
&lt;P&gt;Are you reading from a SAS dataset? Or from access to some external database?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens if you run this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1;
  set enginal.ApplicationDecisions (obs=1);
run;
proc contents data=test1; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What happens if you merge the datasets using simple data step code instead of PROC SQL code?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 05:29:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913318#M359987</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-01-29T05:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913319#M359988</link>
      <description>&lt;P&gt;From what you show us that's a really weird behavior and nothing I've seen ever happening. Does this issue persist if you run your code in a new SAS Session?&lt;/P&gt;
&lt;P&gt;If the issue persists then I suggest you contact SAS Tech Support.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the forum here: Provide as much SAS log with logging options like msglevel=i turned on.&lt;/P&gt;
&lt;P&gt;Not that I believe it should make a difference but asking anyway: Is your source table a SAS file or a DB table? Is your source table registered in SAS metadata?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 05:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913319#M359988</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-01-29T05:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913321#M359989</link>
      <description>&lt;P&gt;Regarding your question -"&lt;SPAN&gt;Is your source table a SAS file or a DB table? Is your source table registered in SAS metadata?"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think but I am not sure that the source data is not sas and&amp;nbsp; enginal is the libname to connect it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is there&amp;nbsp; way to check If the source data is SAS file or data base file?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is there a way to check If&amp;nbsp;source table registered in SAS metadata?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 06:07:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913321#M359989</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-29T06:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913329#M359996</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Regarding your question -"&lt;SPAN&gt;Is your source table a SAS file or a DB table? Is your source table registered in SAS metadata?"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think but I am not sure that the source data is not sas and&amp;nbsp; enginal is the libname to connect it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is there&amp;nbsp; way to check If the source data is SAS file or data base file?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is there a way to check If&amp;nbsp;source table registered in SAS metadata?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If the library is not pre-assigned then the libname statement in your code will tell you if it's pointing to a folder with SAS files or to a database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If the library is pre-assigned then...&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;libname&amp;nbsp;enginal list;&lt;/PRE&gt;
&lt;P&gt;...will tell you what engine the libname uses and the engine tells you if it's for SAS files or a database.&lt;/P&gt;
&lt;P&gt;Use SMC for a library that's defined in SAS metadata to check if it also got table registered - and if SAS will be using table metadata to access the physical data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you haven't answered is my most important question: "&lt;SPAN&gt;Does this issue persist if you run your code in a new SAS Session?"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 07:06:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913329#M359996</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-01-29T07:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913334#M359998</link>
      <description>&lt;P&gt;I run the code&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname enginal list;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the Log- I think that I see that table is in sql server??&lt;/P&gt;
&lt;P&gt;How did it happen that column change attribute from numeric to char?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          The SAS System                             07:39 Monday, January 29, 2024

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=PNG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         FILENAME EGSR TEMP;
15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16             STYLE=HTMLBlue
17             STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HTMLBlue.css")
18             NOGTITLE
19             NOGFOOTNOTE
20             GPATH=&amp;amp;sasworklocation
21             ENCODING=UTF8
22             options(rolap="on")
23         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
24         
25         GOPTIONS ACCESSIBLE;
26         libname enginal list;
NOTE: Libref=   ENGINAL 
      Scope=    Object Server
      Engine=   SQLSVR
      Physical Name= Enginal
      Schema/Owner= dbo
27         
28         GOPTIONS NOACCESSIBLE;
29         %LET _CLIENTTASKLABEL=;
30         %LET _CLIENTPROCESSFLOWNAME=;
31         %LET _CLIENTPROJECTPATH=;
32         %LET _CLIENTPROJECTPATHHOST=;
33         %LET _CLIENTPROJECTNAME=;
34         %LET _SASPROGRAMFILE=;
35         %LET _SASPROGRAMFILEHOST=;
36         
37         ;*';*";*/;quit;run;
38         ODS _ALL_ CLOSE;
39         
40         
41         QUIT; RUN;
42         
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2024 07:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913334#M359998</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-29T07:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913353#M360002</link>
      <description>&lt;P&gt;Bring this to the attention of SAS technical support. Something weird happens when the result is pulled into SAS, because the whole join operation is easily passed to the database (MS SQL Server).&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 09:45:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913353#M360002</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-01-29T09:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913356#M360003</link>
      <description>&lt;P&gt;How should I connect SAS&amp;nbsp;&lt;SPAN&gt;technical support?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;It happens also without merge&amp;nbsp; when I run distinct&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sql;
create table example2 as
select distinct applicationDate
from  enginal.ApplicationDecisions
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ronein_0-1706522411719.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93049iB55052247A7C3679/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ronein_0-1706522411719.png" alt="Ronein_0-1706522411719.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 10:00:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913356#M360003</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-29T10:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913362#M360004</link>
      <description>&lt;P&gt;What is happening when you run simple:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  set enginal.ApplicationDecisions;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is the variable character or numeric then?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 10:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913362#M360004</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-01-29T10:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913363#M360005</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How should I connect SAS&amp;nbsp;&lt;SPAN&gt;technical support?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;It happens also without merge&amp;nbsp; when I run distinct&amp;nbsp;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Run below code (not tested but should work), &lt;A href="https://www.sas.com/en_ae/contact/technical-support/email.html" target="_self"&gt;contact SAS Tech Support&lt;/A&gt; where you describe the problem and also share the code, the full SAS log and the result from the two Proc Contents with SAS Tech Support.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc setinit;
run;

options sastrace=',,d,' sastraceloc=saslog nostsuffix msglevel=i;

proc sql;
  connect using enginal;
  create table test1 as
  select * from connection to enginal
    (select distinct applicationDate from dbo.ApplicationDecisions)
  ;
quit;
proc sql;
  create table test2 as
  select distinct applicationDate
  from  enginal.ApplicationDecisions
  ;
quit;

proc contents data=work.test1;
run;quit;
proc contents data=work.test2;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I've added on top of the code Proc Setinit as this will provide SAS Tech Support with all the additional information they require like SAS version, OS, site number etc.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 10:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913363#M360005</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-01-29T10:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913364#M360006</link>
      <description>&lt;P&gt;Follow up question, what happens when you run:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  set enginal.ApplicationDecisions(dbsastype=(applicationDate='DATE'));
run;

proc sql;
create table testSQL as
select applicationDate
from enginal.ApplicationDecisions(dbsastype=(applicationDate='DATE'))
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 10:49:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913364#M360006</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-01-29T10:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913370#M360010</link>
      <description>&lt;P&gt;Show the LOG of everything from your proc contents for the first data set, the sql and the last proc contents.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 11:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913370#M360010</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-01-29T11:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913383#M360021</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql  outobs=5;
create table example1 as
select  applicationDate
from  enginal.ApplicationDecisions
;
quit;
proc contents data=example1;Run;


proc sql;
create table example2 as
select distinct applicationDate
from  enginal.ApplicationDecisions
;
quit;
proc contents data=example1;Run;

 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the Log&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          The SAS System                             07:39 Monday, January 29, 2024

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program (2)';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=PNG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         FILENAME EGSR TEMP;
15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16             STYLE=HTMLBlue
17             STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HTMLBlue.css")
18             NOGTITLE
19             NOGFOOTNOTE
20             GPATH=&amp;amp;sasworklocation
21             ENCODING=UTF8
22             options(rolap="on")
23         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
24         
25         GOPTIONS ACCESSIBLE;
26         proc sql  outobs=5;
27         create table example1 as
28         select  applicationDate
29         from  enginal.ApplicationDecisions
30         ;
NOTE: Compression was disabled for data set WORK.EXAMPLE1 because compression overhead would increase the size of the data set.
WARNING: Statement terminated early due to OUTOBS=5 option.
NOTE: Table WORK.EXAMPLE1 created, with 5 rows and 1 columns.

31         quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.14 seconds
      user cpu time       0.01 seconds
      system cpu time     0.02 seconds
      memory              5359.71k
      OS Memory           33708.00k
      Timestamp           01/29/2024 02:57:50 PM
      Step Count                        356  Switch Count  2
      Page Faults                       0
      Page Reclaims                     136
      Page Swaps                        0
      Voluntary Context Switches        147
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0
      

32         proc contents data=example1;Run;

NOTE: PROCEDURE CONTENTS used (Total process time):
      real time           0.03 seconds
      user cpu time       0.01 seconds
2                                                          The SAS System                             07:39 Monday, January 29, 2024

      system cpu time     0.00 seconds
      memory              996.96k
      OS Memory           28584.00k
      Timestamp           01/29/2024 02:57:50 PM
      Step Count                        357  Switch Count  0
      Page Faults                       0
      Page Reclaims                     61
      Page Swaps                        0
      Voluntary Context Switches        35
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0
      

33         
34         
35         proc sql;
36         create table example2 as
37         select distinct applicationDate
38         from  enginal.ApplicationDecisions
39         ;
NOTE: Compression was disabled for data set WORK.EXAMPLE2 because compression overhead would increase the size of the data set.
NOTE: Table WORK.EXAMPLE2 created, with 1671 rows and 1 columns.

40         quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           2.00 seconds
      user cpu time       0.02 seconds
      system cpu time     0.03 seconds
      memory              5359.43k
      OS Memory           33964.00k
      Timestamp           01/29/2024 02:57:52 PM
      Step Count                        358  Switch Count  2
      Page Faults                       0
      Page Reclaims                     229
      Page Swaps                        0
      Voluntary Context Switches        268
      Involuntary Context Switches      2
      Block Input Operations            0
      Block Output Operations           0
      

41         proc contents data=example1;Run;

NOTE: PROCEDURE CONTENTS used (Total process time):
      real time           0.01 seconds
      user cpu time       0.01 seconds
      system cpu time     0.00 seconds
      memory              559.75k
      OS Memory           29096.00k
      Timestamp           01/29/2024 02:57:52 PM
      Step Count                        359  Switch Count  0
      Page Faults                       0
      Page Reclaims                     22
      Page Swaps                        0
      Voluntary Context Switches        7
      Involuntary Context Switches      0
      Block Input Operations            0
3                                                          The SAS System                             07:39 Monday, January 29, 2024

      Block Output Operations           0
      

42         
43         
44         
45         GOPTIONS NOACCESSIBLE;
46         %LET _CLIENTTASKLABEL=;
47         %LET _CLIENTPROCESSFLOWNAME=;
48         %LET _CLIENTPROJECTPATH=;
49         %LET _CLIENTPROJECTPATHHOST=;
50         %LET _CLIENTPROJECTNAME=;
51         %LET _SASPROGRAMFILE=;
52         %LET _SASPROGRAMFILEHOST=;
53         
54         ;*';*";*/;quit;run;
55         ODS _ALL_ CLOSE;
56         
57         
58         QUIT; RUN;
59         
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2024 12:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913383#M360021</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-29T12:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913388#M360024</link>
      <description>&lt;P&gt;If the results of two identical Proc contents calls differ you have a serious problem.&lt;/P&gt;
&lt;P&gt;Your proc contents is NOT of the set&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt; enginal.ApplicationDecisions&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but a different set made from that one. Since we don't know if that set is from an external data source that means Example1 could be getting some default conversion in the back ground.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And why isn't the second Proc Contents on Example 2?&lt;/P&gt;
&lt;P&gt;The Sql code is also different than in your question where there was a join involved. So you need to show the contents of Enginal.ApplicationDecisions (not Example1) and the resulting set Example2 to discuss these results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql  outobs=5;
create table example1 as
select  applicationDate
from  enginal.ApplicationDecisions
;
quit;
proc contents data=example1;Run;


proc sql;
create table example2 as
select distinct applicationDate
from  enginal.ApplicationDecisions
;
quit;
proc contents data=example1;Run;

 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the Log&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          The SAS System                             07:39 Monday, January 29, 2024

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program (2)';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=PNG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         FILENAME EGSR TEMP;
15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16             STYLE=HTMLBlue
17             STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HTMLBlue.css")
18             NOGTITLE
19             NOGFOOTNOTE
20             GPATH=&amp;amp;sasworklocation
21             ENCODING=UTF8
22             options(rolap="on")
23         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
24         
25         GOPTIONS ACCESSIBLE;
26         proc sql  outobs=5;
27         create table example1 as
28         select  applicationDate
29         from  enginal.ApplicationDecisions
30         ;
NOTE: Compression was disabled for data set WORK.EXAMPLE1 because compression overhead would increase the size of the data set.
WARNING: Statement terminated early due to OUTOBS=5 option.
NOTE: Table WORK.EXAMPLE1 created, with 5 rows and 1 columns.

31         quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.14 seconds
      user cpu time       0.01 seconds
      system cpu time     0.02 seconds
      memory              5359.71k
      OS Memory           33708.00k
      Timestamp           01/29/2024 02:57:50 PM
      Step Count                        356  Switch Count  2
      Page Faults                       0
      Page Reclaims                     136
      Page Swaps                        0
      Voluntary Context Switches        147
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0
      

32         proc contents data=example1;Run;

NOTE: PROCEDURE CONTENTS used (Total process time):
      real time           0.03 seconds
      user cpu time       0.01 seconds
2                                                          The SAS System                             07:39 Monday, January 29, 2024

      system cpu time     0.00 seconds
      memory              996.96k
      OS Memory           28584.00k
      Timestamp           01/29/2024 02:57:50 PM
      Step Count                        357  Switch Count  0
      Page Faults                       0
      Page Reclaims                     61
      Page Swaps                        0
      Voluntary Context Switches        35
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0
      

33         
34         
35         proc sql;
36         create table example2 as
37         select distinct applicationDate
38         from  enginal.ApplicationDecisions
39         ;
NOTE: Compression was disabled for data set WORK.EXAMPLE2 because compression overhead would increase the size of the data set.
NOTE: Table WORK.EXAMPLE2 created, with 1671 rows and 1 columns.

40         quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           2.00 seconds
      user cpu time       0.02 seconds
      system cpu time     0.03 seconds
      memory              5359.43k
      OS Memory           33964.00k
      Timestamp           01/29/2024 02:57:52 PM
      Step Count                        358  Switch Count  2
      Page Faults                       0
      Page Reclaims                     229
      Page Swaps                        0
      Voluntary Context Switches        268
      Involuntary Context Switches      2
      Block Input Operations            0
      Block Output Operations           0
      

41         proc contents data=example1;Run;

NOTE: PROCEDURE CONTENTS used (Total process time):
      real time           0.01 seconds
      user cpu time       0.01 seconds
      system cpu time     0.00 seconds
      memory              559.75k
      OS Memory           29096.00k
      Timestamp           01/29/2024 02:57:52 PM
      Step Count                        359  Switch Count  0
      Page Faults                       0
      Page Reclaims                     22
      Page Swaps                        0
      Voluntary Context Switches        7
      Involuntary Context Switches      0
      Block Input Operations            0
3                                                          The SAS System                             07:39 Monday, January 29, 2024

      Block Output Operations           0
      

42         
43         
44         
45         GOPTIONS NOACCESSIBLE;
46         %LET _CLIENTTASKLABEL=;
47         %LET _CLIENTPROCESSFLOWNAME=;
48         %LET _CLIENTPROJECTPATH=;
49         %LET _CLIENTPROJECTPATHHOST=;
50         %LET _CLIENTPROJECTNAME=;
51         %LET _SASPROGRAMFILE=;
52         %LET _SASPROGRAMFILEHOST=;
53         
54         ;*';*";*/;quit;run;
55         ODS _ALL_ CLOSE;
56         
57         
58         QUIT; RUN;
59         
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 13:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913388#M360024</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-01-29T13:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913394#M360028</link>
      <description>&lt;P&gt;When I run this code then it works fine and the field stay numeric .&lt;/P&gt;
&lt;P&gt;I just wonder why did it happend?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
Data  tbl;
set enginal.ApplicationDecisions(obs=100);
format applicationDate;
format applicationDate ddmmyy10.;
Run;

proc sql;
create table example2 as
select distinct applicationDate
from  tbl
;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2024 13:58:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913394#M360028</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-29T13:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913428#M360043</link>
      <description>&lt;P&gt;Since your original SQL shown had a join with another table then it may have something to do with that other table. Especially if these are external DBMS sources.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 16:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913428#M360043</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-01-29T16:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913510#M360058</link>
      <description>&lt;P&gt;I show that it also happens using distinct (Without merge)&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 05:49:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913510#M360058</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-30T05:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913513#M360059</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;This looks like some bug. My guess is that it's driver related - may-be some unsupported version gets used. You've created and shared some clear test cases that demonstrate it's not just some coding issue. My advice remains that you should directly contact SAS Tech Support so they can guide you further. And I've already shared some code and "instructions" what I believe would help SAS Tech Support to investigate.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 06:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913513#M360059</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-01-30T06:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913674#M360093</link>
      <description>&lt;P&gt;We found the bag with SAS technical support help.&lt;/P&gt;
&lt;P&gt;We need to change the driver in ODCB&amp;nbsp; from&amp;nbsp;DATADIRECT driver to SAS driver.&lt;/P&gt;
&lt;P&gt;Can anyone explain what does it mean driver?(The SAS admin deal with it but I just curious )&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 20:53:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913674#M360093</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-30T20:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: $ATE9 format , column change from numeric to char without asking to do it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913695#M360099</link>
      <description>&lt;P&gt;"Drivers" are communication instructions. How to send text to a printer for example is a "printer driver", create sound from a sound file uses a sound card driver to send instructions to the sound system. ODBC links are "drivers" to communicate data between systems.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 23:39:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ATE9-format-column-change-from-numeric-to-char-without-asking-to/m-p/913695#M360099</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-01-30T23:39:43Z</dc:date>
    </item>
  </channel>
</rss>

