<?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: ERROR: No DATALINES or INFILE statement. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-No-DATALINES-or-INFILE-statement/m-p/854612#M337764</link>
    <description>&lt;P&gt;For SAS EG there are "prompts", SAS even did a video about it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://video.sas.com/detail/video/6295499870001/create-and-use-prompts-in-queries-and-tasks" target="_blank"&gt;https://video.sas.com/detail/video/6295499870001/create-and-use-prompts-in-queries-and-tasks&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 15:39:06 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2023-01-19T15:39:06Z</dc:date>
    <item>
      <title>ERROR: No DATALINES or INFILE statement.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-No-DATALINES-or-INFILE-statement/m-p/854514#M337711</link>
      <description>&lt;P&gt;Hi, i am trying to create an sample banking payment suggestion decision engine but i get an error&amp;nbsp;&lt;STRONG&gt;ERROR: No DATALINES or INFILE statement&amp;nbsp;&lt;/STRONG&gt;when i run second part of my code where i need to prompt the user to enter recipient details(i.e cellphone number/card number/account number) as well as the amount they wish to send. see below code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your assistane would be greatly appreciated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data payment_options;
input method $ cost maximum_amount;
datalines;
RPP 7 3000
Instant_Payment 7 3000
EFT_On_Us_PAYU 1 1000000
EFT_Off_Us_PAYU 1 1000000
EFT_Pay_to_Cell_PAYU 1 1000000
EFT_On_Us_Bundled 0 1000000
EFT_Off_Us_Bundled 0 1000000
EFT_Pay_to_Cell_Bundled 0 1000000
eWallet 2 3000
RTC 45 450000
;
run;

/* Prompt the user for recipient information and amount */
data _null_;
put 'Enter recipient information (cellphone, card, account): ';
input recipient_info $;
put 'Enter amount to send: ';
input amount;
run;

/* Use an IF-ELSE statement to suggest the best payment method */
data suggest_payment;
set payment_options;
if recipient_info = 'cellphone' and amount &amp;lt;= 3000 then output;
else if recipient_info = 'card' and amount &amp;lt;= 1000000 then output;
else if recipient_info = 'account' and amount &amp;lt;= 1000000 then output;
else put 'Invalid recipient information or amount';
run;

proc print data=suggest_payment;
run;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jan 2023 09:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-No-DATALINES-or-INFILE-statement/m-p/854514#M337711</guid>
      <dc:creator>Solly7</dc:creator>
      <dc:date>2023-01-19T09:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: No DATALINES or INFILE statement.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-No-DATALINES-or-INFILE-statement/m-p/854536#M337720</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; pleas help</description>
      <pubDate>Thu, 19 Jan 2023 11:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-No-DATALINES-or-INFILE-statement/m-p/854536#M337720</guid>
      <dc:creator>Solly7</dc:creator>
      <dc:date>2023-01-19T11:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: No DATALINES or INFILE statement.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-No-DATALINES-or-INFILE-statement/m-p/854537#M337721</link>
      <description>&lt;P&gt;Have a look at the second data step, the input statement needs either infile or datalines statement to process data.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 11:34:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-No-DATALINES-or-INFILE-statement/m-p/854537#M337721</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2023-01-19T11:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: No DATALINES or INFILE statement.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-No-DATALINES-or-INFILE-statement/m-p/854606#M337759</link>
      <description>&lt;P&gt;This&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Prompt the user for recipient information and amount */
data _null_;
put 'Enter recipient information (cellphone, card, account): ';
input recipient_info $;
put 'Enter amount to send: ';
input amount;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;cannot work. PUT writes to the log or an external file (if assigned with FILE), and INPUT reads from files (INFILE) or DATALINES.&lt;/P&gt;
&lt;P&gt;User prompts can be defined in Enterprise Guide and used in EG projects or stored processes.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 15:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-No-DATALINES-or-INFILE-statement/m-p/854606#M337759</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-19T15:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: No DATALINES or INFILE statement.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-No-DATALINES-or-INFILE-statement/m-p/854610#M337762</link>
      <description>&lt;P&gt;Depending on the SAS environment the method for "prompting for user" changes.&lt;/P&gt;
&lt;P&gt;If you are using a Display Manager environment you want to research the WINDOW and %WINDOW statements, which allows showing a prompt and reading data from a response. Otherwise describe the environment you are working in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you aren't going to save the responses in a data set then perhaps the %Window is appropriate to create macro variable values that could be used in your third data step directly.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 15:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-No-DATALINES-or-INFILE-statement/m-p/854610#M337762</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-01-19T15:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: No DATALINES or INFILE statement.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-No-DATALINES-or-INFILE-statement/m-p/854612#M337764</link>
      <description>&lt;P&gt;For SAS EG there are "prompts", SAS even did a video about it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://video.sas.com/detail/video/6295499870001/create-and-use-prompts-in-queries-and-tasks" target="_blank"&gt;https://video.sas.com/detail/video/6295499870001/create-and-use-prompts-in-queries-and-tasks&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 15:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-No-DATALINES-or-INFILE-statement/m-p/854612#M337764</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-01-19T15:39:06Z</dc:date>
    </item>
  </channel>
</rss>

