<?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: TRANWRD with 2 same arguments. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54014#M11399</link>
    <description>Thanks a lot for your reply!&lt;BR /&gt;
But this is the error that I am getting for the last part of the code. Do we always need 3 arguments for CATX? &lt;BR /&gt;
data sample_tr;&lt;BR /&gt;
76   set sample_tr;&lt;BR /&gt;
77   * SAS-default length $200 for _acct ;&lt;BR /&gt;
78   _acct = catx(' ', of acct: );&lt;BR /&gt;
             ----&lt;BR /&gt;
             71&lt;BR /&gt;
ERROR 71-185: The CATX function call does not have enough arguments.&lt;BR /&gt;
&lt;BR /&gt;
79   _name = Name1;&lt;BR /&gt;
80   retain msg_template '_Name has Account(s): _Acct';&lt;BR /&gt;
81   msg_txt = tranwrd(msg_template,'_Name',trim(_name) );&lt;BR /&gt;
82   msg_txt = tranwrd(msg_txt,'_Acct',trim(_acct) );&lt;BR /&gt;
83   drop acct: ;&lt;BR /&gt;
84   putlog '&amp;gt;DIAG&amp;gt; Resulting merged data: ' / msg_txt //;&lt;BR /&gt;
85   run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).&lt;BR /&gt;
      78:9   79:9&lt;BR /&gt;
NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;BR /&gt;
      81:45   82:40&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance!

Message was edited by: sasnewbee</description>
    <pubDate>Thu, 22 Jul 2010 18:12:46 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-07-22T18:12:46Z</dc:date>
    <item>
      <title>TRANWRD with 2 same arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54005#M11390</link>
      <description>A small issue.&lt;BR /&gt;
Given below is the extract of my output.&lt;BR /&gt;
Cust_no   Cust_id &lt;BR /&gt;
1000	2	The customer was JANE SMITH and account provided  was 234567 &amp;amp; 678954. A relationship was found between JANE SMITH and GARY JOHNSON. &lt;BR /&gt;
1000	2	They are both owners on a deposit account 234567 &amp;amp; 678954.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Now the input table has 2 corresponding rows as below where FLd is the value of the attr. So the value of attr1 is fld1. And I am replacing all occurrences of 'attr' in MSg_TXT with 'fld' .&lt;BR /&gt;
Cust_no	Cust_TYP	Cust_ID	MSG_ID	MSG_SEQ_NO	MSG_TXT	fld1	fld2	fld3	fld4	fld5	fld6	fld7	attr1	attr2	attr3	attr4	attr5	attr6	attr7&lt;BR /&gt;
123	EVT	2	238	5	They are both owners on a deposit account &lt;ACCOUNT&gt;&lt;/ACCOUNT&gt;.	234567	678954	HOUSTON BANKING CENTER, HOUSTON, TX	JANE SMITH and GARY JOHNSON	JANE SMITH	“the customer entered the banking center and requested that the teller explain how to wire funds overseas.”		Account#	Account#	BranchName	EVPartiesInvolved	PARTY NAME	TRMText&lt;BR /&gt;
123	EVT	2	237	4	The customer was &lt;PARTY name=""&gt;&lt;/PARTY&gt; and account provided was &lt;ACCOUNT&gt;&lt;/ACCOUNT&gt;. A relationship was found between &lt;PARTIES&gt;&lt;/PARTIES&gt;.	234567	678954	HOUSTON BANKING CENTER, HOUSTON, TX	JANE SMITH and GARY JOHNSON	JANE SMITH	“the customer entered the banking center and requested that the teller explain how to wire funds overseas.”		Account#	Account#	BranchName	Parties	PARTY NAME	TRMText&lt;BR /&gt;
&lt;BR /&gt;
And this is my code &lt;BR /&gt;
data MYDATA.e_final;&lt;BR /&gt;
set mydata.e_join;&lt;BR /&gt;
array fld_nm_var (*) attr: ;&lt;BR /&gt;
array fld_txt_var(*) fld:;&lt;BR /&gt;
do i=1 to dim(fld_nm_var);&lt;BR /&gt;
fld_txt = fld_txt_var(i);&lt;BR /&gt;
fld_name = fld_nm_var(i);&lt;BR /&gt;
tfld_name = "&amp;lt;" || TRIM(LEFT(fld_name)) || "/&amp;gt;" ;&lt;BR /&gt;
msg_txt =tranwrd(msg_txt,trim(tfld_name),trim(fld_txt));&lt;BR /&gt;
drop i fld_txt fld_name tfld_name;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Thoiugh the inoput table has fld1 = 234567 and fld2 = 678945, when I run this code, it just uses the first Account# it finds which 234567. But I am expecting both acct numbers. For that matter , any attribute that occurs twice in a observation , should be seen as fld1 &amp;amp; fld2 &amp;amp; fld3 etc. &lt;BR /&gt;
&lt;BR /&gt;
IS there any way to achieve this? &lt;BR /&gt;
&lt;BR /&gt;
Thank you!!!</description>
      <pubDate>Wed, 21 Jul 2010 18:53:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54005#M11390</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-21T18:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: TRANWRD with 2 same arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54006#M11391</link>
      <description>I know this might  not work if more than 2 acct# are present, but this is what I was trying to do with the log. IS there a way to check for end of arrays in SAS? &lt;BR /&gt;
&lt;BR /&gt;
328  data MYDATA.e_final;&lt;BR /&gt;
329  set mydata.e_join;&lt;BR /&gt;
330  array fld_nm_var (*) attr: ;&lt;BR /&gt;
331  array fld_txt_var(*) fld:;&lt;BR /&gt;
332  do i=1 to dim(fld_nm_var);&lt;BR /&gt;
333  fld_name = fld_nm_var(i);&lt;BR /&gt;
334  tfld_name = "&amp;lt;" || TRIM(LEFT(fld_name)) || "/&amp;gt;" ;&lt;BR /&gt;
335  if i ^=  dim(fld_nm_var) and fld_nm_var(i) = fld_nm_var(i+1) then&lt;BR /&gt;
336  fld_txt =  fld_txt_var(i) || "&amp;amp;" || fld_txt_var(i+1);&lt;BR /&gt;
337  else&lt;BR /&gt;
338  fld_txt = fld_txt_var(i);&lt;BR /&gt;
339&lt;BR /&gt;
341  msg_txt =tranwrd(msg_txt,trim(tfld_name),trim(fld_txt));&lt;BR /&gt;
342 &lt;BR /&gt;
343  drop i fld_txt fld_name tfld_name;&lt;BR /&gt;
344  *PUT '****';&lt;BR /&gt;
345  end;&lt;BR /&gt;
346  run;&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Array subscript out of range at line 335 column 46.&lt;BR /&gt;
cust_no=100 cust_TYP=EVT cust_ID=3 MSG_ID=234 MSG_SEQ_NO=1&lt;BR /&gt;
MSG_TXT=THIS  IS CASH DEPOSIT CASE FOR JOHN SMITH, ADAM SMITH &amp;amp; BBC COMPANY fld1=CASH DEPOSIT&lt;BR /&gt;
fld2=JOHN SMITH, ADAM SMITH &amp;amp; BBC COMPANY fld3=  fld4=  fld5=  fld6=  fld7=  attr1=RSN_CD attr2=PARTY NAME attr3=&lt;BR /&gt;
attr4=  attr5=  attr6=  attr7=  i=7 fld_name=  tfld_name=&amp;lt; /&amp;gt; fld_txt=&amp;amp; _ERROR_=1 _N_=1&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.</description>
      <pubDate>Wed, 21 Jul 2010 19:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54006#M11391</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-21T19:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: TRANWRD with 2 same arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54007#M11392</link>
      <description>Whatever happened to the PROC TRANSPOSE recommendation - you can do the same for your "data value" file or have an outer DO/END (for your variable data - with your SET inside) and a "transposed" file for your template mapping values.&lt;BR /&gt;
&lt;BR /&gt;
I suggest you work on transposing each of your two files - then analyze their content, then develop a process flow (outside of SAS - on paper) to address your information processing requirement, and then start developing the SAS code to address the rqmt.&lt;BR /&gt;
&lt;BR /&gt;
Honestly, I have to wonder if there is any offline review/thought/discussion or process flow development being done on your own, before you sit down to program your problem in SAS.&lt;BR /&gt;
&lt;BR /&gt;
So, in summary, as we've discussed, you need to consider PROC TRANSPOSE and MERGE/BY for your two input files, to logically join and manipulate the information before generating a single output row/detail_line or whatever.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 21 Jul 2010 19:55:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54007#M11392</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-07-21T19:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: TRANWRD with 2 same arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54008#M11393</link>
      <description>Yes there is a process flow that I had thought about. When I post a query I also keep testing, just taht if I get help from SAS experts I might finish the testing faster. Now the main part being achieved, these are some small fixes that I have to do depending on the data.  &lt;BR /&gt;
And I am posting only taht part of the code with which I face a problem . SO my entire code does have the 2 transpose and the MErge. &lt;BR /&gt;
I am trying to concatenate as mentioned in my post above in the last part of the code. &lt;BR /&gt;
&lt;BR /&gt;
PROC SORT DATA=mydata.e_csa OUT=mydata.e_csa_sort nodupkey;&lt;BR /&gt;
  BY cust_no cust_typ cust_id field_nm field_txt;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc transpose data=mydata.e_csa_sort out = mydata.e_csa_trans(drop =_name_) prefix = fld ;&lt;BR /&gt;
by cust_no cust_typ cust_id ;&lt;BR /&gt;
var field_tx;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc transpose data=mydata.e_csa_sort out = mydata.e_csa_trans1(drop =_name_) prefix = attr ;&lt;BR /&gt;
by cust_no cust_typ cust_id ;&lt;BR /&gt;
var field_nm;&lt;BR /&gt;
run;&lt;BR /&gt;
data mydata.e_csa_merge; &lt;BR /&gt;
merge mydata.e_csa_trans mydata.e_csa_trans1 ; &lt;BR /&gt;
by cust_no cust_typ cust_id ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sql ; &lt;BR /&gt;
drop table mydata.e_join;&lt;BR /&gt;
create table mydata.e_join as&lt;BR /&gt;
(select  * from mydata.e_story_msg_out m&lt;BR /&gt;
 left join mydata.e_csa_merge a  &lt;BR /&gt;
 on m.cust_no = a.cust_no and m.cust_typ = a.cust_typ and m.cust_id = a.cust_id &lt;BR /&gt;
 ) ;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data MYDATA.e_final;&lt;BR /&gt;
set mydata.e_join;&lt;BR /&gt;
array fld_nm_var (*) attr: ;&lt;BR /&gt;
array fld_txt_var(*) fld:;&lt;BR /&gt;
do i=1 to dim(fld_nm_var);&lt;BR /&gt;
fld_txt = fld_txt_var(i);&lt;BR /&gt;
fld_name = fld_nm_var(i);&lt;BR /&gt;
tfld_name = "&amp;lt;" || TRIM(LEFT(fld_name)) || "/&amp;gt;" ;&lt;BR /&gt;
msg_txt =tranwrd(msg_txt,trim(fld_name),trim(fld_txt));&lt;BR /&gt;
drop fld_txt fld_name i;&lt;BR /&gt;
PUT '****';&lt;BR /&gt;
end;&lt;BR /&gt;
run;

Message was edited by: sasnewbee</description>
      <pubDate>Wed, 21 Jul 2010 20:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54008#M11393</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-21T20:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: TRANWRD with 2 same arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54009#M11394</link>
      <description>Not sure the purpose/need for the PROC SQL step, you should have what you need with a MERGE.  &lt;BR /&gt;
&lt;BR /&gt;
Before the TRANWRD assignment can be performed, the "n" number of "like" template values must be consolidated into a single temporary data-string (explore the CAT functions).  So, in the final DATA step there must be some preprocessing  code within a DO/END, creating the "concanated" data-string, then execute your TRANWRD, once for each of the unique template value that appears in your template MSG_TXT variable.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 21 Jul 2010 20:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54009#M11394</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-07-21T20:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: TRANWRD with 2 same arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54010#M11395</link>
      <description>I need the PROC SQL bcuz my MSG_TXT is in the second table. &lt;BR /&gt;
And I did look at CAT functions and what I am trying ot do is. &lt;BR /&gt;
But I get an error saying  - ERROR: Array subscript out of range at line 368 column 46.&lt;BR /&gt;
&lt;BR /&gt;
 if i ^= dim(fld_nm_var) and fld_nm_var(i) = fld_nm_var(i+1) then&lt;BR /&gt;
 fld_txt = fld_txt_var(i) || "&amp;amp;" || fld_txt_var(i+1);&lt;BR /&gt;
 else&lt;BR /&gt;
 fld_txt = fld_txt_var(i);&lt;BR /&gt;
&lt;BR /&gt;
I reserached but did not find anything to  check for end of array? I thought this might help --i ^= dim(fld_nm_var) , but it didn't.</description>
      <pubDate>Wed, 21 Jul 2010 20:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54010#M11395</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-21T20:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: TRANWRD with 2 same arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54011#M11396</link>
      <description>Please follow the other thread back - the MERGE / BY process to combine the "related template" data strings with your "key association" variables.  And if you have only one "global" MSG_TXT template, then you need to do two MERGEs, one for the discrete set of MERGE/BY data and then one more to merge on the static template variable(s), as needed.&lt;BR /&gt;
&lt;BR /&gt;
You really need to get used to PUTLOG "I'm at location #nn" / _ALL_;  statements being strategically located throughout your program so you can analyze the flow and how your array subscript variables increment -- the error indicates that you are attempting to associate two arrays of different dimensions - which won't work obviously -- so you logic must be flawed and so it's time to go back to basic process flow analysis, possibly using an oversimplified set of "sample data values", generated either from input data (picking certain data rows), or by "cooking up" some sample data using a DATA step and DATALINES with an INPUT statement using candidate instream data-values that mimic your much larger data population.&lt;BR /&gt;
&lt;BR /&gt;
The PUTLOG _ALL_ statement is more your friend here to get over the hump with the logic problem -- and you need to learn/know your data to get past the problem.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 21 Jul 2010 20:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54011#M11396</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-07-21T20:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: TRANWRD with 2 same arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54012#M11397</link>
      <description>Sorry but I did not get you.  Can you please elaborate? &lt;BR /&gt;
My code works just fine except for this concatenation needed when there are 2/more acct# in the same record.</description>
      <pubDate>Wed, 21 Jul 2010 21:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54012#M11397</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-21T21:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: TRANWRD with 2 same arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54013#M11398</link>
      <description>Here's an oversimplified data-sample and process example for your use - it shows only one "multiple field value" condition which you will need to think about how to incorporate additional fields that are similar.&lt;BR /&gt;
&lt;BR /&gt;
Hope it helps you work through the challenge.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
data sample;&lt;BR /&gt;
length field value $30;&lt;BR /&gt;
input key $ field $ value &amp;amp; $;&lt;BR /&gt;
datalines;&lt;BR /&gt;
100 Acct 1111111&lt;BR /&gt;
100 Acct 1111112&lt;BR /&gt;
100 Name Jane A. Public&lt;BR /&gt;
200 Acct 2111111&lt;BR /&gt;
200 Name John Doe&lt;BR /&gt;
run;&lt;BR /&gt;
proc sort data=sample;&lt;BR /&gt;
  by key field;&lt;BR /&gt;
run;&lt;BR /&gt;
data sample;&lt;BR /&gt;
  set sample;&lt;BR /&gt;
  by key field;&lt;BR /&gt;
  if first.field then ucnt = 1;&lt;BR /&gt;
  else ucnt + 1;&lt;BR /&gt;
  field = cats(field,ucnt);&lt;BR /&gt;
run;&lt;BR /&gt;
proc transpose data=sample out=sample_tr (drop=_:) ;&lt;BR /&gt;
by key;&lt;BR /&gt;
id field;&lt;BR /&gt;
var value;&lt;BR /&gt;
run;&lt;BR /&gt;
data sample_tr;&lt;BR /&gt;
  set sample_tr;&lt;BR /&gt;
  * SAS-default length $200 for _acct ;&lt;BR /&gt;
  _acct = catx(' ',of acct: );&lt;BR /&gt;
  _name = Name1;&lt;BR /&gt;
  retain msg_template '_Name has Account(s): _Acct';&lt;BR /&gt;
  msg_txt = tranwrd(msg_template,'_Name',trim(_name) );&lt;BR /&gt;
  msg_txt = tranwrd(msg_txt,'_Acct',trim(_acct) );&lt;BR /&gt;
  drop acct: ;&lt;BR /&gt;
  putlog '&amp;gt;DIAG&amp;gt;  Resulting merged data: ' / msg_txt //;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 21 Jul 2010 22:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54013#M11398</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-07-21T22:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: TRANWRD with 2 same arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54014#M11399</link>
      <description>Thanks a lot for your reply!&lt;BR /&gt;
But this is the error that I am getting for the last part of the code. Do we always need 3 arguments for CATX? &lt;BR /&gt;
data sample_tr;&lt;BR /&gt;
76   set sample_tr;&lt;BR /&gt;
77   * SAS-default length $200 for _acct ;&lt;BR /&gt;
78   _acct = catx(' ', of acct: );&lt;BR /&gt;
             ----&lt;BR /&gt;
             71&lt;BR /&gt;
ERROR 71-185: The CATX function call does not have enough arguments.&lt;BR /&gt;
&lt;BR /&gt;
79   _name = Name1;&lt;BR /&gt;
80   retain msg_template '_Name has Account(s): _Acct';&lt;BR /&gt;
81   msg_txt = tranwrd(msg_template,'_Name',trim(_name) );&lt;BR /&gt;
82   msg_txt = tranwrd(msg_txt,'_Acct',trim(_acct) );&lt;BR /&gt;
83   drop acct: ;&lt;BR /&gt;
84   putlog '&amp;gt;DIAG&amp;gt; Resulting merged data: ' / msg_txt //;&lt;BR /&gt;
85   run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).&lt;BR /&gt;
      78:9   79:9&lt;BR /&gt;
NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;BR /&gt;
      81:45   82:40&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance!

Message was edited by: sasnewbee</description>
      <pubDate>Thu, 22 Jul 2010 18:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54014#M11399</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-22T18:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: TRANWRD with 2 same arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54015#M11400</link>
      <description>I had no problem running the sample code I submitted - suggest you will want to own the code you end up with, so by all means, create a "test-run" with sample data string values and run it until the results are acceptable with no errors.&lt;BR /&gt;
&lt;BR /&gt;
Honestly, we've seen your sometimes short-changed log outputs, with not always all the code revealed, so from my perspective, you need to take it from here.&lt;BR /&gt;
&lt;BR /&gt;
And, yet again, I can't overemphasize how important it is to have self-initiated desk-checking and problem diagnostic skills.  Remember this statement is always your friend (as well as the various syntax for SAS comments):&lt;BR /&gt;
&lt;BR /&gt;
PUTLOG _ALL_;&lt;BR /&gt;
&lt;BR /&gt;
Good luck.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 22 Jul 2010 18:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54015#M11400</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-07-22T18:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: TRANWRD with 2 same arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54016#M11401</link>
      <description>You are right. Your code run prefect whne I run all of it a one time. When I try to run it separately as posted above, the last piece of code gives me the error.</description>
      <pubDate>Thu, 22 Jul 2010 18:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54016#M11401</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-22T18:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: TRANWRD with 2 same arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54017#M11402</link>
      <description>Work through your problem - analyze your code, test your code, break up your code, and re-test until you get desirable results -- maybe the DATA step log below can provide a hint about the ERROR symptom and the lack of SAS variables starting with "acct":&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
1    data _null_;&lt;BR /&gt;
2    _acct = catx(' ', of acct: );&lt;BR /&gt;
             ----&lt;BR /&gt;
             71&lt;BR /&gt;
ERROR 71-185: The CATX function call does not have enough arguments.&lt;BR /&gt;
&lt;BR /&gt;
3    run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.10 seconds&lt;BR /&gt;
      cpu time            0.01 second&lt;BR /&gt;
&lt;BR /&gt;
A PUTLOG _ALL_;   statement in your DATA step with the assignment statement commented out provides some clues.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 22 Jul 2010 18:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRANWRD-with-2-same-arguments/m-p/54017#M11402</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-07-22T18:57:14Z</dc:date>
    </item>
  </channel>
</rss>

