<?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: Problem with the SAS Coding .Error Message appearing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-the-SAS-Coding-Error-Message-appearing/m-p/741062#M231625</link>
    <description>But I am having problem with the implementation of codes</description>
    <pubDate>Thu, 13 May 2021 11:20:35 GMT</pubDate>
    <dc:creator>nishi1582</dc:creator>
    <dc:date>2021-05-13T11:20:35Z</dc:date>
    <item>
      <title>Problem with the SAS Coding .Error Message appearing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-the-SAS-Coding-Error-Message-appearing/m-p/741061#M231624</link>
      <description>&lt;P&gt;I am working on reconstruction of the Limit Order Book&amp;nbsp;&lt;/P&gt;&lt;P&gt;And have certain Sample Codes for SAS&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= TEST.BAJAJAUTO&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAFILE= "C:\Users\Online_Class\Desktop\BAJAJ-AUTO.NS.csv"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=CSV REPLACE;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GETNAMES=YES;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAROW=2;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;data test.Cash_trades_01012015;&lt;BR /&gt;INFILE "F:\RawData\CASH_Trades_01012015.DAT"&amp;nbsp;&amp;nbsp; firstobs=1 lrecl =150;&lt;BR /&gt;input&amp;nbsp; Record_ind $ 1-2&amp;nbsp; segment $ 3-6&amp;nbsp; trade_no $ 7-22&amp;nbsp;&amp;nbsp; trade_tm&amp;nbsp; 23-36 symbol $ 37-46 series $ 47-48 trd_prc&amp;nbsp; 49-56&lt;BR /&gt;trd_q&amp;nbsp; 57-64&amp;nbsp; buy_order_no $ 65-80 buy_algo_ind 81 buy_client_flg 82 sell_order_no $ 83-98 sell_algo_ind 99 sell_client_flg 100;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data test.Cash_orders_01012015;&lt;BR /&gt;INFILE "F:\RawData\CASH_Orders_01012015.DAT"&amp;nbsp;&amp;nbsp; firstobs=1 lrecl =150;&lt;BR /&gt;input&amp;nbsp; Record_ind $ 1-2&amp;nbsp; segment $ 3-6&amp;nbsp; order_no $ 7-22&amp;nbsp;&amp;nbsp; quote_tm&amp;nbsp; 23-36 buysell $ 37 activity_typ $ 38 symbol $ 39-48&lt;BR /&gt;series $ 49-50 vol_discl&amp;nbsp; 51-58 vol_orgnl&amp;nbsp; 59-66&amp;nbsp; limit_prc&amp;nbsp; 67-74 trig_prc 75-82 mkt_ord_flg $ 83 stp_loss_flg $ 84&lt;BR /&gt;ioc_flg $ 85 algo_ind 86 client_flg 87;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data test.Cash_index_01012015;&lt;BR /&gt;INFILE "F:\RawData\CASH_Index_01012015.DAT"&amp;nbsp;&amp;nbsp; firstobs=1 lrecl =150;&lt;BR /&gt;input&amp;nbsp; Record_ind $ 1-2&amp;nbsp; segment $ 3-6&amp;nbsp; date $ 7-14 trans_tm $ 15-22 value 23-30 value_junior 31-38;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data test.ITC_Trades (drop = Record_ind segment series time1 time2 trade_tm buy_algo_ind buy_client_flg sell_algo_ind sell_client_flg);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set test.Cash_trades_01012015;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if symbol = "bbbbbbbITC";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time1 = trade_tm/65536;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time2 = MOD(time1,86400);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time = time2/3600;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; period = int((time-9.25)*12)+1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Record_ind = 'RM')AND(segment = 'CASH')AND(series = 'EQ');&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data test.ITC_Orders (drop = Record_ind segment series time1 time2 quote_tm algo_ind client_flg);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set test.Cash_orders_01012015;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if symbol = "bbbbbbbITC";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time1 = quote_tm/65536;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time2 = MOD(time1,86400);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time = time2/3600;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; period = int((time-9.25)*12)+1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Record_ind = 'RM')AND(segment = 'CASH')AND(series = 'EQ');&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data test.Order1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set test.ITC_Orders;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if order_no = '2015010133369695';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc means data=test.Order1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var limit_prc;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data test.Cash_trades_01012015_1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set test.Cash_trades_01012015;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; traded_vol = trd_prc*trd_q/100;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc sort data = test.Cash_trades_01012015_1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by symbol trade_tm;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc means data=test.Cash_trades_01012015_1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var traded_vol;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by symbol;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output out = Traded_Vol_Summary&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(traded_vol) = test.Daily_Traded_Vol;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc sort data = test.Cash_orders_01012015;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by algo_ind mkt_ord_flg activity_typ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc freq data = test.Cash_orders_01012015;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by algo_ind;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables mkt_ord_flg*activity_typ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are generic codes to be applied to 2 data files in SAS on Demand&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 11:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-the-SAS-Coding-Error-Message-appearing/m-p/741061#M231624</guid>
      <dc:creator>nishi1582</dc:creator>
      <dc:date>2021-05-13T11:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the SAS Coding .Error Message appearing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-the-SAS-Coding-Error-Message-appearing/m-p/741062#M231625</link>
      <description>But I am having problem with the implementation of codes</description>
      <pubDate>Thu, 13 May 2021 11:20:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-the-SAS-Coding-Error-Message-appearing/m-p/741062#M231625</guid>
      <dc:creator>nishi1582</dc:creator>
      <dc:date>2021-05-13T11:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the SAS Coding .Error Message appearing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-the-SAS-Coding-Error-Message-appearing/m-p/741066#M231628</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/370582"&gt;@nishi1582&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;What issue are you encountering? The more details you provide the better&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Can you run the code and provide the log output (tip: use the Insert SAS Code button and paste the log output in there when posting back to communities).&lt;/LI&gt;
&lt;LI&gt;Can you isolate the issue to a specific data|proc step?&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 13 May 2021 11:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-the-SAS-Coding-Error-Message-appearing/m-p/741066#M231628</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2021-05-13T11:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the SAS Coding .Error Message appearing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-the-SAS-Coding-Error-Message-appearing/m-p/741067#M231629</link>
      <description>&lt;P&gt;SAS on Demand does not have access to your desktop drive. You have to upload the files first with the upload facility of SAS Studio, and then use the correct UNIX path (right-click on the file in the Studio navigation pane) in your PROC IMPORT statement.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 11:54:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-the-SAS-Coding-Error-Message-appearing/m-p/741067#M231629</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-13T11:54:24Z</dc:date>
    </item>
  </channel>
</rss>

