<?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: SAS DI user written transformation in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327155#M9526</link>
    <description>&lt;P&gt;Unfortunately&amp;nbsp;not (assuming you are meaning in metadata - which of&amp;nbsp;course needs to go hand-in-hand with physical data, I wished this was the case though...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A bit of (unasked for) advice: don't just migrate EG&amp;nbsp;code into user&amp;nbsp;written DI jobs, it will give you headache the your to come. Use this migrating as an&amp;nbsp;opportunity to structure your processes, and even&amp;nbsp;enhance it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;(Editor's note: also see the advice from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/7881"&gt;@DavidGhan&lt;/a&gt;&amp;nbsp;for &lt;A href="https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327380#M9541" target="_self"&gt;adding metadata details&amp;nbsp;to your user-written transform&lt;/A&gt;, if that's the route you choose.)&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2017 14:16:17 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-01-26T14:16:17Z</dc:date>
    <item>
      <title>SAS DI user written transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327057#M9525</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty new to SAS DI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am in process of migrating EG projects to DI most of it being user written code.&lt;/P&gt;&lt;P&gt;Would I be able to create new columns as part of code using user written transformation, rather then manually creating new columns?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramaa&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 14:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327057#M9525</guid>
      <dc:creator>Ramabc3</dc:creator>
      <dc:date>2017-01-24T14:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI user written transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327155#M9526</link>
      <description>&lt;P&gt;Unfortunately&amp;nbsp;not (assuming you are meaning in metadata - which of&amp;nbsp;course needs to go hand-in-hand with physical data, I wished this was the case though...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A bit of (unasked for) advice: don't just migrate EG&amp;nbsp;code into user&amp;nbsp;written DI jobs, it will give you headache the your to come. Use this migrating as an&amp;nbsp;opportunity to structure your processes, and even&amp;nbsp;enhance it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;(Editor's note: also see the advice from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/7881"&gt;@DavidGhan&lt;/a&gt;&amp;nbsp;for &lt;A href="https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327380#M9541" target="_self"&gt;adding metadata details&amp;nbsp;to your user-written transform&lt;/A&gt;, if that's the route you choose.)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 14:16:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327155#M9526</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-01-26T14:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI user written transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327163#M9528</link>
      <description>&lt;P&gt;I'm with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;. Using the&amp;nbsp;&lt;EM&gt;extract&lt;/EM&gt; or&amp;nbsp;&lt;EM&gt;join&lt;/EM&gt; transformations you can create the new columns easily, which is the defined way of doing it. User-written transformations (which I'm a big fan of, by the way!)&amp;nbsp;&lt;EM&gt;can&lt;/EM&gt; do this but it requires fairly specific code to do it. In my opinion, user-written transformations should be generalised; I despair when I see, quite commonly, every single DI job in a suite has its own distinct transformation(s), because I know it's going to make the maintenance work extensive.&amp;nbsp;If a&amp;nbsp;dataset's own metadata and DI's metadata get out of sync, it'll all end in tears.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similarly that SAS code is completely different from COBOL (I&amp;nbsp;&lt;EM&gt;am&lt;/EM&gt; that old), good DI and EG styles are quite&amp;nbsp;different.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 20:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327163#M9528</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-01-24T20:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI user written transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327330#M9540</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the extract trasformation created new columns and then the remaining code in the user written trasformation worked except for the retain statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, I am actually trying to flatten a hierarchy file, which requires the initial values of the new column created to be retained. I am setting the initial value of the new columns as blank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a piece of data step code that I used in the user written transofrmation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Test; /*DEFINE NEW TABLE TO BE CREATED*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set Hier; /*DEFINE WHERE DATA SHOULD COME FROM*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*ALLOW NEW COLUMNS TO BE RETAINED FOR NEXT ROW AND PROVIDE INITIAL VALUE*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Retain LVL1 '';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Retain LVL2 '';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Retain LVL3 '';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*POPULATE COLUMN VALUES AS APPROPRIATE*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Level = 1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LVL1 = UNIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Level = 2 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LVL2 = UNIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Level &amp;lt; 2 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LVL2 = '';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Level = 3 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LVL3 = UNIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Level &amp;lt; 3 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LVL3 = '';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run it, it executes the if condition but not the retain statement. Ideally if LVL1 has a value that has to be retained for the subsequent rows until it finds the next one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramaa Chavan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:43:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327330#M9540</guid>
      <dc:creator>Ramabc3</dc:creator>
      <dc:date>2017-01-25T10:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI user written transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327380#M9541</link>
      <description>&lt;P&gt;I copied your code into a User Written code transformation in DI Studio, created a dataset like HIER for that transformation to read as an input dataset and I got it to work. I think maybe the issue is that the metadata for the input and output datasets (the ones on the SET statement and the DATA statement are not in sync with the physical datasets you are creating. Try the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Connect the dataset you want to read ( the one on your SET statement) to the User written transformation. You will need to register that table in the metadata to do so unless it was created by a prior transformation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. In your code write your SET statement this way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET &amp;amp;_input1;&amp;nbsp;&amp;nbsp;&amp;nbsp; * the macro variable _input1 references the data source connected to the transformation;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. In your code write your DATA statement like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA &amp;amp;_output1;&amp;nbsp; * the macro variable _output1&amp;nbsp; references the&amp;nbsp;target table that is connected&amp;nbsp;to the transformation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. After you execute your transformation, save the job changes and then right-click on the output table connected to your user written transformation and select Update Table Metadata. Select Yes to proceed and either Yes or No about the next question related to viewing the details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you can look at the data in your target table and see if it looks like what you want.&lt;/P&gt;
&lt;P&gt;Everytime you change the code in your user written transformation in a way that affects the structure of the output table you will need to repeat step 4. It is also possible to add a small amout of post-code to the user written transformation to perform the Update Table Metadata operation to automate this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: you may be able to avoid using &amp;amp;_input1 on the SET statement and therefore avoid registering and attaching&amp;nbsp; the HIER dataset to your User Written code transformation if the HIER dataset already exists and is available on your SAS server whenever you run the transformation. I would recommend going ahead and registering it in the metadata and connecting it to your transformation and using &amp;amp;_input1 to reference it in your job so that it is more integrated with the DI Studio interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another note: I generally agree with others in this thread who recommended converting your code into transformations that do the equivalent if it is possible and if &amp;nbsp;you have time to do that. User Written code is best used for specialized code for which there are no equivalent transformations. ANd&amp;nbsp;the techniques I have described here there are great ways to incorporate user written code into DI Studio jobs as well when you need to do so.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327380#M9541</guid>
      <dc:creator>DavidGhan</dc:creator>
      <dc:date>2017-01-25T14:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI user written transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327413#M9543</link>
      <description>Thanks David, will try and let you know how it goes</description>
      <pubDate>Wed, 25 Jan 2017 15:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327413#M9543</guid>
      <dc:creator>Ramabc3</dc:creator>
      <dc:date>2017-01-25T15:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI user written transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327950#M9579</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I contected the input and output tables to the transformation and changed the code Set &amp;amp;_input1; and Data &amp;amp;_output1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this below error message :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;12064&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data &amp;amp;_output1; /*DEFINE NEW TABLE TO BE CREATED*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, /, ;, _DATA_, _LAST_, _NULL_.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;12065&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set &amp;amp;_input1; /*DEFINE WHERE DATA SHOULD COME FROM*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference _INPUT1 not resolved.&lt;/P&gt;&lt;P&gt;ERROR: File WORK._INPUT1.DATA does not exist.&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, ;, CUROBS, END, INDSNAME, KEY, KEYRESET, KEYS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOBS, OPEN, POINT, _DATA_, _LAST_, _NULL_.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if I need to define these variables "_input1" and "_output1".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 09:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/327950#M9579</guid>
      <dc:creator>Ramabc3</dc:creator>
      <dc:date>2017-01-27T09:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI user written transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/328019#M9590</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The entire code worked fine after registering the table and the metadata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although the Set &amp;amp;_input1 and Data &amp;amp;_output1 as mentioned earlier did not work, hence I had to leve it the way it was.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramaa&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 14:26:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/328019#M9590</guid>
      <dc:creator>Ramabc3</dc:creator>
      <dc:date>2017-01-27T14:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI user written transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/328020#M9591</link>
      <description>&lt;P&gt;In the Code tab within the Properties of the User Written transformation there is a choice called "Code generation mode". Make sure that "User written body" is selected there rather than "All User Written". That will cause &amp;amp;_input1 and &amp;amp;_output1 to be defined for you (as long as you attach the source table as a source table to the User written transformation and you have a target table as the output of the transformation. By default when you add the transformation to the job it will have a work table as a target table).&lt;/P&gt;
&lt;P&gt;I am not sure why you are getting the first error on line 12064. Perhaps if you send me the entire log so I can see what preceeds the DATA statement. The error may be caused by something you added before that DATA statement.Can you send me the complete log?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 14:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-user-written-transformation/m-p/328020#M9591</guid>
      <dc:creator>DavidGhan</dc:creator>
      <dc:date>2017-01-27T14:27:43Z</dc:date>
    </item>
  </channel>
</rss>

