<?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: Format column to no format when loading SAS table in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512640#M15924</link>
    <description>You would have to list the variables for starter - use the feedback option to cheat here. &lt;BR /&gt;Then you would add format=8. or best12. to set it to a format that may not be problematic. Or you can strip the format within PROC DATASETS ahead of time. &lt;BR /&gt;&lt;BR /&gt;proc sql feedback;&lt;BR /&gt;create table want as select * from sashelp.class;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;Copy code from log and then add in format portion:&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select CLASS.Name, CLASS.Sex, CLASS.Age, CLASS.Height format=best12., CLASS.Weight&lt;BR /&gt;          from SASHELP.CLASS;&lt;BR /&gt;quit;&lt;BR /&gt;</description>
    <pubDate>Tue, 13 Nov 2018 16:50:47 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-11-13T16:50:47Z</dc:date>
    <item>
      <title>Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512625#M15921</link>
      <description>&lt;P&gt;I'm trying to load&amp;nbsp;a SAS table&amp;nbsp;to Netezza and one of the issues I get is a communication link failure. Based on this discussion:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/Communication-link-failure-when-upload-table-to-Netezza-database/td-p/486989" target="_blank"&gt;https://communities.sas.com/t5/SAS-Data-Management/Communication-link-failure-when-upload-table-to-Netezza-database/td-p/486989&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it may be because of one of my column values. However, I don't understand how to format that value when I load to Netezza. Here is how I load to netezza:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myPathToTable "\path\to\SAS\Table";

libname sdf odbc noprompt="server=xxxx; DRIVER={NetezzaSQL}; port=xxxx; database=xxxxx; username=xxx; password=xxxx;";

proc sql;
create table sdf.table
(DBCREATE_TABLE_OPTS 'distribute on (col1)' bulkload = YES)
AS SELECT * FROM myPathToTable.mySASTable;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now let's say I want to reformat col2 to no format. How would I do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 16:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512625#M15921</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-13T16:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512632#M15922</link>
      <description>&lt;P&gt;formats are not transfered from SAS to DBMS or vice versa. Formats are only for display i.e. that how your data appears, what is the issue with col2 that you want to fix. Format the author takes about in link is not format but a data type.&lt;/P&gt;
&lt;P&gt;I am not sure the link you have provided makes much sense to me as I have moved data from DBMS to SAS with various numeric data types. SAS is smart enough to intrepret those data types. Only known issue is with bigint datatype, because of known numeric restriction in SAS and can be handled in various ways&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 16:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512632#M15922</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-11-13T16:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512637#M15923</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37783"&gt;@kiranv_&lt;/a&gt;&amp;nbsp;would I be able to format the column before I load it to Netezza?&amp;nbsp;&lt;/P&gt;&lt;P&gt;My column is a numeric type but contains decimals, and in the link I provided above, that could be the issue related to my communication link failure. So I would like to format it to no format as suggesting in the forum.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 16:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512637#M15923</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-13T16:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512640#M15924</link>
      <description>You would have to list the variables for starter - use the feedback option to cheat here. &lt;BR /&gt;Then you would add format=8. or best12. to set it to a format that may not be problematic. Or you can strip the format within PROC DATASETS ahead of time. &lt;BR /&gt;&lt;BR /&gt;proc sql feedback;&lt;BR /&gt;create table want as select * from sashelp.class;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;Copy code from log and then add in format portion:&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select CLASS.Name, CLASS.Sex, CLASS.Age, CLASS.Height format=best12., CLASS.Weight&lt;BR /&gt;          from SASHELP.CLASS;&lt;BR /&gt;quit;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Nov 2018 16:50:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512640#M15924</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-13T16:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512641#M15925</link>
      <description>&lt;P&gt;I have updated my answer, it is not format but one of the data type in DBMS (netezza in this case). I am not sure this is the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 16:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512641#M15925</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-11-13T16:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512643#M15927</link>
      <description>&lt;P&gt;Check this data types document for Netezza. This tells you the default formats translated to Netezza&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p07ge3f7fvfh5ln1msgdpqhbeh31.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p07ge3f7fvfh5ln1msgdpqhbeh31.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 16:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512643#M15927</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-11-13T16:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512644#M15928</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37783"&gt;@kiranv_&lt;/a&gt;All of the data types in my SAS table are either characters or numerics. Are u saying when I create the table in SAS, Netezza could be assigning one of the column values as BIGINT which could cause the issue?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 16:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512644#M15928</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-13T16:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512645#M15929</link>
      <description>&lt;P&gt;No. SAS is smart enough to understand various numeric datatypes in DBMS to convert into SAS number and same with character variable of various DBMS into SAS character variable. If you have bigint&amp;nbsp; datatypein Netteza, then you may certain issue with your precision but SAS does not create big int datatypes. My take home point is the link you have provided and logic you are saying is not correct. saying that decimal(8,2) is creating problems is very tough to agree.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 17:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512645#M15929</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-11-13T17:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512685#M15930</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37783"&gt;@kiranv_&lt;/a&gt;&amp;nbsp;in my example, I am not moving a table from Netezza to SAS, but rather from SAS to Netezza. So in Netezza, I am not creating any of the datatypes manually, I just run the code to load the table to Netezza from SAS&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 18:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512685#M15930</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-13T18:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512701#M15931</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;thanks I'll look into this. The problem is that some tables have a large amount of columns...so maybe it's not ideal even if it does solve my issue.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 19:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512701#M15931</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-13T19:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512707#M15932</link>
      <description>&lt;P&gt;You can do following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. create your sas table with format you want and then insert the data rather create table&lt;/P&gt;
&lt;P&gt;2 in pass through code use cast(yourcolumn as integer). I would prefer cast as integer way and I know it works&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS when seeing a datatype decimal(8,2) it tries to use format&amp;nbsp; w.d&amp;nbsp; in format of 8.2.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know connectivity issues general happens when you have limitation at Netezza side, that is&amp;nbsp; netezza admin decides a particular user can stay connected for certain amount of time( this is done for number of reasons).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally Connectivity issues does not have anything with datatypes conversion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 19:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512707#M15932</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-11-13T19:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512775#M15933</link>
      <description>You can drop formats using proc datasets or in a data step. You can refer to all numeric or character or lists of variables within those procedures, but you cannot with PROC SQL. That SQL limitation is painful. Have you tried loading your data with a data step or PROC APPEND instead of PROC SQL?</description>
      <pubDate>Tue, 13 Nov 2018 22:26:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512775#M15933</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-13T22:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512918#M15937</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;I have not but I think maybe itll be worth a shot to do it like that.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 12:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512918#M15937</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-14T12:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512942#M15939</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37783"&gt;@kiranv_&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I broke up the problem and I found which column is causing the communication link failure (let's call this column col1). When I load all columns besides it, I don't get the communication link failure, but when I try to load that one column alone, I get the error. I tried to reformat the column like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc datasets Lib=MyLib;
Modify mySASTable;
format col1;
Run;
Quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And than I tried to load it alone with proc sql but I get the same error. Is it because the modification is only temporary and doesn't affect the actual SAS table? If so, can someone show me how I can load the modified table?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512942#M15939</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-14T13:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512980#M15941</link>
      <description>You're assuming that link was correct and that the format has to be the issue. I'm not 100%sure of that. What format was applied to col1 before you changed it?</description>
      <pubDate>Wed, 14 Nov 2018 16:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512980#M15941</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-14T16:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512990#M15942</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;I'm thinking maybe it's worth a shot because when I try to load that column alone to a table in Netezza I get the communication link error, but when I load other columns together, It does it successfully. Col1 is of type character which contains names of individuals.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 16:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512990#M15942</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-14T16:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512995#M15943</link>
      <description>Check your entries, I'm going to guess a few have characters that are problematic to loading. To do this, split your data in half (or quarters or whatever) and try loading it in batches.</description>
      <pubDate>Wed, 14 Nov 2018 16:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/512995#M15943</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-14T16:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/513005#M15944</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;thanks for the suggestion, but maybe I just won't load data from SAS straight to Netezza because some of these tables I'll need to load are over 300 million records so splitting them up will be a time kill. I'll just convert them to csv and load the csv to Netezza.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 16:40:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/513005#M15944</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-14T16:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/513009#M15945</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;also, I uploaded the table without the bulkload option (which took about 5 hours) and it did not error out...At this point I'm not sure what to think the issue is.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 16:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/513009#M15945</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-14T16:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Format column to no format when loading SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/513015#M15946</link>
      <description>I was suggesting splitting to find the issue, assuming you do find the issue, it should be relatively easy to transfer it up. I hate working with CSVs because you have to ensure the right types and formats manually again (though I guest Netezza doesn't use formats).</description>
      <pubDate>Wed, 14 Nov 2018 17:30:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Format-column-to-no-format-when-loading-SAS-table/m-p/513015#M15946</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-14T17:30:01Z</dc:date>
    </item>
  </channel>
</rss>

