<?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: A Little Problem with SAS DI Studio 4.9 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/A-Little-Problem-with-SAS-DI-Studio-4-9/m-p/622486#M183120</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/310488"&gt;@dphilip01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be a great help if you posted the full job. Open the code pane in the job editor (found next to the active diagram-pane), copy the whole DI Studio job code and post it as SAS code (a box to paste the code into opens if you click on the "running man icon").&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 16:10:10 GMT</pubDate>
    <dc:creator>ErikLund_Jensen</dc:creator>
    <dc:date>2020-02-05T16:10:10Z</dc:date>
    <item>
      <title>A Little Problem with SAS DI Studio 4.9</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-Little-Problem-with-SAS-DI-Studio-4-9/m-p/622468#M183113</link>
      <description>&lt;P&gt;I'm a long-time SAS user recently transitioning to SAS DI Studio 4.9 from SAS EG &amp;amp; SAS Desktop.There been some small bumps in the road with this transition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example. I'd like to read in a simple external text file of customer numbers.So I've created a new "External File Transformation" in the job folder. That works fine.&amp;nbsp; I can right-click the external file transformation and open the file&amp;nbsp; or view the file as a table - perfect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 2: I pull a "File Reader Transformation" onto the job work space and connect the External File Transformation to the "File Reader Tansformation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 3: I go into&amp;nbsp; "File Reader Transformation" properties - mapping and&amp;nbsp; add an expression in to the target table colum to extrtact a substring&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; that takes only the first 13 characters of the customer no. (substr(custno, 1,13) so the output or target table should have 1&amp;nbsp; 13-character column&lt;/P&gt;&lt;P&gt;&amp;nbsp;Here's the code from&amp;nbsp; the File Reader Transformation.&lt;/P&gt;&lt;P&gt;/*==========================================================================*&lt;BR /&gt;* Step: User Written A5Y0E07I.$0000649 *&lt;BR /&gt;* Transform: User Written *&lt;BR /&gt;* Description: *&lt;BR /&gt;* *&lt;BR /&gt;* Source Table: Dat_Numbers - A5Y0E07I.C30001DW *&lt;BR /&gt;* /data/skynet/files/custom_billing/c *&lt;BR /&gt;* b_general/SMG_16th_Dat_nos.txt *&lt;BR /&gt;* Target Table: User Written - work.W29KIED A5Y0E07I.$0000651 *&lt;BR /&gt;* *&lt;BR /&gt;* User Written: SourceCode *&lt;BR /&gt;*==========================================================================*/&lt;/P&gt;&lt;P&gt;%let transformID = %quote(A5Y0E07I.$0000649);&lt;BR /&gt;%let trans_rc = 0;&lt;BR /&gt;%let etls_stepStartTime = %sysfunc(datetime(), datetime20.);&lt;/P&gt;&lt;P&gt;/* Runtime statistics macros */&lt;BR /&gt;%etls_setPerfInit;&lt;BR /&gt;%perfstrt(txnname=%BQUOTE(_DISARM|&amp;amp;transformID|&amp;amp;syshostname|UserWritten), metrNam6=_DISROWCNT, metrDef6=Count32) ;&lt;/P&gt;&lt;P&gt;%let _INPUT_count = 1;&lt;BR /&gt;%let _OUTPUT_count = 1;&lt;BR /&gt;%let _OUTPUT = work.W29KIED;&lt;BR /&gt;%let _OUTPUT_connect = ;&lt;BR /&gt;%let _OUTPUT_engine = ;&lt;BR /&gt;%let _OUTPUT_memtype = DATA;&lt;BR /&gt;%let _OUTPUT_options = %nrquote();&lt;BR /&gt;%let _OUTPUT_alter = %nrquote();&lt;BR /&gt;%let _OUTPUT_path = %nrquote(/User Written_A5Y0E07I.$0000651%(WorkTable%));&lt;BR /&gt;%let _OUTPUT_type = 1;&lt;BR /&gt;%let _OUTPUT_label = %nrquote();&lt;BR /&gt;/* List of target columns to keep */&lt;BR /&gt;%let _OUTPUT_keep = Bill_no_;&lt;BR /&gt;%let _OUTPUT_col_count = 1;&lt;BR /&gt;%let _OUTPUT_col0_name = Bill_no_;&lt;BR /&gt;%let _OUTPUT_col0_table = work.W29KIED;&lt;BR /&gt;%let _OUTPUT_col0_length = 28;&lt;BR /&gt;%let _OUTPUT_col0_type = $;&lt;BR /&gt;%let _OUTPUT_col0_format = $28.;&lt;BR /&gt;%let _OUTPUT_col0_informat = $28.;&lt;BR /&gt;%let _OUTPUT_col0_label = %nrquote(Billing_number_Date);&lt;BR /&gt;%let _OUTPUT_col0_input0 = Bill_no_;&lt;BR /&gt;%let _OUTPUT_col0_exp = ;&lt;BR /&gt;%let _OUTPUT_col0_input = Bill_no_;&lt;BR /&gt;%let _OUTPUT_col0_input_count = 1;&lt;/P&gt;&lt;P&gt;%let _OUTPUT1 = work.W29KIED;&lt;BR /&gt;%let _OUTPUT1_connect = ;&lt;BR /&gt;%let _OUTPUT1_engine = ;&lt;BR /&gt;%let _OUTPUT1_memtype = DATA;&lt;BR /&gt;%let _OUTPUT1_options = %nrquote();&lt;BR /&gt;%let _OUTPUT1_alter = %nrquote();&lt;BR /&gt;%let _OUTPUT1_path = %nrquote(/User Written_A5Y0E07I.$0000651%(WorkTable%));&lt;BR /&gt;%let _OUTPUT1_type = 1;&lt;BR /&gt;%let _OUTPUT1_label = %nrquote();&lt;BR /&gt;/* List of target columns to keep */&lt;BR /&gt;%let _OUTPUT1_keep = Bill_no_;&lt;BR /&gt;%let _OUTPUT1_col_count = 1;&lt;BR /&gt;%let _OUTPUT1_col0_name = Bill_no_;&lt;BR /&gt;%let _OUTPUT1_col0_table = work.W29KIED;&lt;BR /&gt;%let _OUTPUT1_col0_length = 28;&lt;BR /&gt;%let _OUTPUT1_col0_type = $;&lt;BR /&gt;%let _OUTPUT1_col0_format = $28.;&lt;BR /&gt;%let _OUTPUT1_col0_informat = $28.;&lt;BR /&gt;%let _OUTPUT1_col0_label = %nrquote(Billing_number_Date);&lt;BR /&gt;%let _OUTPUT1_col0_input0 = Bill_no_;&lt;BR /&gt;%let _OUTPUT1_col0_exp = ;&lt;BR /&gt;%let _OUTPUT1_col0_input = Bill_no_;&lt;BR /&gt;%let _OUTPUT1_col0_input_count = 1;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%rcSet(&amp;amp;syserr);&lt;BR /&gt;%rcSet(&amp;amp;sqlrc);&lt;BR /&gt;%perfstop(metrVal6=%sysfunc(max(&amp;amp;etls_recnt,-1)));&lt;BR /&gt;%let etls_recnt=-1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/** Step end User Written **/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 4: Save the job. Right-click the "File Reader transformation" select "Run selected transformation.. -thats it&amp;nbsp; Now I'd expect to see&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; successful execution of the&amp;nbsp; new&amp;nbsp; table with&amp;nbsp; a single column - simple right. In SAS Desktop and SAS EG this is maybe 10 lines of code using an "infile statement"&amp;nbsp; However that is not the case in SAS DI Studio and this is what makes the transition to SAS DI Studio&amp;nbsp; so difficult.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I attempt to open the table I get the error message " There was an error while initializing view data - Error fetching library Cannot fetch data.. I've never seen a error like this with SAS Desktop or SAS EG.&amp;nbsp; (See attached).&amp;nbsp; I appreciate any suggestions on how to rresolve this error.&amp;nbsp; Thank you very much in advance.&amp;nbsp; Dphilip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 16:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-Little-Problem-with-SAS-DI-Studio-4-9/m-p/622468#M183113</guid>
      <dc:creator>dphilip01</dc:creator>
      <dc:date>2020-02-05T16:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: A Little Problem with SAS DI Studio 4.9</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-Little-Problem-with-SAS-DI-Studio-4-9/m-p/622486#M183120</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/310488"&gt;@dphilip01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be a great help if you posted the full job. Open the code pane in the job editor (found next to the active diagram-pane), copy the whole DI Studio job code and post it as SAS code (a box to paste the code into opens if you click on the "running man icon").&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 16:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-Little-Problem-with-SAS-DI-Studio-4-9/m-p/622486#M183120</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2020-02-05T16:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: A Little Problem with SAS DI Studio 4.9</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-Little-Problem-with-SAS-DI-Studio-4-9/m-p/622487#M183121</link>
      <description>Hi Erik,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Greatly appreciate you taking the time to look into this problem. These little issues are slowing my transition to SAS DI Studio and,&lt;BR /&gt;&lt;BR /&gt;error message does not assist in resolving this problem. However, I'll post the code as recommended.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you very much,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dphilip01&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Feb 2020 16:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-Little-Problem-with-SAS-DI-Studio-4-9/m-p/622487#M183121</guid>
      <dc:creator>dphilip01</dc:creator>
      <dc:date>2020-02-05T16:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: A Little Problem with SAS DI Studio 4.9</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-Little-Problem-with-SAS-DI-Studio-4-9/m-p/622488#M183122</link>
      <description>&lt;P&gt;Forgot - post the log as well - use the {i} symbol to get a box&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 16:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-Little-Problem-with-SAS-DI-Studio-4-9/m-p/622488#M183122</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2020-02-05T16:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: A Little Problem with SAS DI Studio 4.9 - Proble Resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-Little-Problem-with-SAS-DI-Studio-4-9/m-p/622513#M183125</link>
      <description>Hi Erik,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for all of your help on this SAS problem. Please to do not spend any more time on investigating.&lt;BR /&gt;&lt;BR /&gt;It seems that this problem is tied to my SAS user configuration. My other colleagues are able to run&lt;BR /&gt;&lt;BR /&gt;the job successfully, so I suspect a setting in my SAS user profile is incorrect.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you very much for all of our efforts.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Feb 2020 18:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-Little-Problem-with-SAS-DI-Studio-4-9/m-p/622513#M183125</guid>
      <dc:creator>dphilip01</dc:creator>
      <dc:date>2020-02-05T18:32:00Z</dc:date>
    </item>
  </channel>
</rss>

