<?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 I can insert these two extra rows into this table? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683257#M206936</link>
    <description>&lt;P&gt;This line&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt; ,DVAL format=DATETIME20.,&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;has a comma at the end that you do not want. With a comma the next thing expected is another expression or variable name but you have the keyword FROM indicating that almost certainly you are indicating the data sets next.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And likely you have more variables that are numeric that you are attempting to assign character values to.&lt;/P&gt;
&lt;P&gt;My guess is one or more of the =' ' should be = . to assign missing to numeric. But we don't know your data set. Again, my &lt;STRONG&gt;guess&lt;/STRONG&gt;, would be Nval as the name sort of looks like short for "numericalvalue" and Cval .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run Proc contents on your data set to determine variable types.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2020 14:46:42 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-09-11T14:46:42Z</dc:date>
    <item>
      <title>How I can insert these two extra rows into this table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683219#M206917</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
   insert into _SYSTEM.MBNA_HD_RUNPARMS
      set PARAMETER='HIST_START_DT'
          ,DESC='Start Date for history build'
          ,TYPE='D'
		  ,CVAL=''
		  ,NVAL=''
		  ,DVAL='01AUG2014:00:00:00'
      set PARAMETER='HIST_END_DT'
          ,DESC='End Date for history build'
          ,TYPE='D'
		  ,CVAL=''
		  ,NVAL=''
		  ,DVAL='01AUG2020:00:00:00';
      
   select 
          PARAMETER
          ,TYPE
		  ,CVAL
		  ,NVAL
		  ,DVAL format=DATETIME20.,
      from _SYSTEM.MBNA_HD_RUNPARMS
      ;
	  QUIT;

ERROR: Character expression requires a character format.
ERROR: It is invalid to assign a character expression to a numeric value using the SET clause.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to add these rows to this table, I've tried using this code to get it added but I'm receiving this error. How can I re-write this, so itll work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 11:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683219#M206917</guid>
      <dc:creator>guest1994</dc:creator>
      <dc:date>2020-09-11T11:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: How I can insert these two extra rows into this table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683220#M206918</link>
      <description>&lt;PRE&gt;'01AUG2014:00:00:00'&lt;/PRE&gt;
&lt;P&gt;is just a string, or a character value in SAS parlance. If you wanted to specify a datetime constant, you need to add the dt modifier to the string:&lt;/P&gt;
&lt;PRE&gt;'01AUG2014:00:00:00'dt&lt;/PRE&gt;
&lt;P&gt;If that does not fix it:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;post the complete log of the SQL procedure step&lt;/LI&gt;
&lt;LI&gt;post the output of PROC CONTENTS for your dataset&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 11 Sep 2020 11:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683220#M206918</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-11T11:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: How I can insert these two extra rows into this table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683229#M206923</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          The SAS System                           13:17 Friday, September 11, 2020

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%20(x86)/SASHome/x86/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 _SYSTEM BASE "/team/dev/bicc_admin/LM_TRAN/system";
NOTE: Libref _SYSTEM refers to the same physical library as _SYSD.
NOTE: Libref _SYSTEM was successfully assigned as follows: 
      Engine:        BASE 
      Physical Name: /team/dev/bicc_admin/LM_TRAN/system
27         
28         


29         proc sql;
30            insert into _SYSTEM.MBNA_HD_RUNPARMS
31               set PARAMETER='HIST_START_DT'
32                   ,DESC='Start Date for history build'
33                   ,TYPE='D'
34         		  ,CVAL=''
35         		  ,NVAL=''
36         		  ,DVAL='01AUG2014:00:00:00'dt
37               set PARAMETER='HIST_END_DT'
38                   ,DESC='End Date for history build'
39                   ,TYPE='D'
40         		  ,CVAL=''
41         		  ,NVAL=''
42         		  ,DVAL='01AUG2020:00:00:00'dt;
ERROR: It is invalid to assign a character expression to a numeric value using the SET clause.
ERROR: It is invalid to assign a character expression to a numeric value using the SET clause.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
43         
44            select
45                   PARAMETER
46                   ,TYPE
47         		  ,CVAL
48         		  ,NVAL
2                                                          The SAS System                           13:17 Friday, September 11, 2020

49         		  ,DVAL format=DATETIME20.,
50               from _SYSTEM.MBNA_HD_RUNPARMS
                      _______
                      22
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, (, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, AND, BETWEEN, 
              CONTAINS, EQ, EQT, FROM, GE, GET, GT, GTT, LE, LET, LIKE, LT, LTT, NE, NET, OR, ^=, |, ||, ~=.  

51               ;
                 _
                 22
                 76
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, 
              AND, AS, BETWEEN, CONTAINS, EQ, EQT, FORMAT, FROM, GE, GET, GT, GTT, IN, INFORMAT, INTO, IS, LABEL, LE, LEN, LENGTH, 
              LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, TRANSCODE, ^, ^=, |, ||, ~, ~=.  

ERROR 76-322: Syntax error, statement will be ignored.

52         	  QUIT;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              5360.21k
      OS Memory           25512.00k
      Timestamp           11/09/2020 01:22:40 PM
      Step Count                        5  Switch Count  0
      Page Faults                       0
      Page Reclaims                     26
      Page Swaps                        0
      Voluntary Context Switches        0
      Involuntary Context Switches      4
      Block Input Operations            0
      Block Output Operations           0
      
53         
54         GOPTIONS NOACCESSIBLE;
55         %LET _CLIENTTASKLABEL=;
56         %LET _CLIENTPROCESSFLOWNAME=;
57         %LET _CLIENTPROJECTPATH=;
58         %LET _CLIENTPROJECTPATHHOST=;
59         %LET _CLIENTPROJECTNAME=;
60         %LET _SASPROGRAMFILE=;
61         %LET _SASPROGRAMFILEHOST=;
62         
63         ;*';*";*/;quit;run;
64         ODS _ALL_ CLOSE;
65         
66         
67         QUIT; RUN;
68         &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is the log&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 12:25:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683229#M206923</guid>
      <dc:creator>guest1994</dc:creator>
      <dc:date>2020-09-11T12:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: How I can insert these two extra rows into this table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683230#M206924</link>
      <description>&lt;DIV&gt;This is the proc contents:&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;DESC&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;256&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Description&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;DVAL&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;DATETIME20.&lt;/TD&gt;&lt;TD&gt;DateTime Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;NVAL&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Numeric Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;PARAMETER&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Parameter (SOURCE_TYPE_LOCATION_NAME)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;TYPE&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 12:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683230#M206924</guid>
      <dc:creator>guest1994</dc:creator>
      <dc:date>2020-09-11T12:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: How I can insert these two extra rows into this table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683257#M206936</link>
      <description>&lt;P&gt;This line&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt; ,DVAL format=DATETIME20.,&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;has a comma at the end that you do not want. With a comma the next thing expected is another expression or variable name but you have the keyword FROM indicating that almost certainly you are indicating the data sets next.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And likely you have more variables that are numeric that you are attempting to assign character values to.&lt;/P&gt;
&lt;P&gt;My guess is one or more of the =' ' should be = . to assign missing to numeric. But we don't know your data set. Again, my &lt;STRONG&gt;guess&lt;/STRONG&gt;, would be Nval as the name sort of looks like short for "numericalvalue" and Cval .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run Proc contents on your data set to determine variable types.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 14:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683257#M206936</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-11T14:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How I can insert these two extra rows into this table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683272#M206942</link>
      <description>&lt;P&gt;NVAL is numeric:&lt;/P&gt;
&lt;TABLE cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;TD&gt;NVAL&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Numeric Value&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but you try to assign it a character value:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;,NVAL=''&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;that won't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 15:54:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683272#M206942</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-11T15:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: How I can insert these two extra rows into this table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683279#M206944</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/250748"&gt;@guest1994&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;DIV&gt;This is the proc contents:&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;TABLE cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;DESC&lt;/TD&gt;
&lt;TD&gt;Char&lt;/TD&gt;
&lt;TD&gt;256&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Description&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;6&lt;/TD&gt;
&lt;TD&gt;DVAL&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;DATETIME20.&lt;/TD&gt;
&lt;TD&gt;DateTime Value&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;TD&gt;NVAL&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Numeric Value&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;PARAMETER&lt;/TD&gt;
&lt;TD&gt;Char&lt;/TD&gt;
&lt;TD&gt;32&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Parameter (SOURCE_TYPE_LOCATION_NAME)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;TYPE&lt;/TD&gt;
&lt;TD&gt;Char&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Type&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And Cval? Which might be the variable order 4? Is it Char or Num?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 16:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-I-can-insert-these-two-extra-rows-into-this-table/m-p/683279#M206944</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-11T16:08:27Z</dc:date>
    </item>
  </channel>
</rss>

