<?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: Capture error record in macro variable from a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593726#M170449</link>
    <description>&lt;P&gt;What if the value of X has more than one values? Or&lt;/P&gt;&lt;P&gt;The dups dataset has multiple variables and values?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2019 14:34:53 GMT</pubDate>
    <dc:creator>David_Billa</dc:creator>
    <dc:date>2019-10-03T14:34:53Z</dc:date>
    <item>
      <title>Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593685#M170421</link>
      <description>&lt;P&gt;I've written a macro program as follows. First program to create a dataset named 'protocol' and the second macro program is to check for&amp;nbsp;the count&amp;nbsp;in 'dups' dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the count is greater than 0 in 'dups' dataset&amp;nbsp;then I would like to call the first macro program with some values. In the list of Parameter macro variables there is a macro variable called 'flt_rec_txt'. In this variable (don't worrry about length)&amp;nbsp;I want to feed the values by populating all the observations from 'dups' dataset seperated by space. However I'm not certain how to achieve&amp;nbsp;it in my apporach &amp;nbsp;and I got error as below. Also I was asked not to change the apporach in order to resolve the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro IFR_WRITE_ERROR(
			error_code =
			, error_text =
			, flt_id =
			,flt_rec_txt =		
			);

	data protocol;
		ERROR_CODE = &amp;amp;error_code.;
		TEXT = "&amp;amp;error_text.";
		flt_id=&amp;amp;flt_id.;
		flt_rec_txt="&amp;amp;flt_rec_txt.";
	run;

%mend IFR_WRITE_ERROR;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro IFR_CHECK_KEYS;

	proc sql noprint;
		select count(*)
			into :dup_columns
				from dups
		;
	quit;

	%if &amp;amp;dup_columns. &amp;gt; 0 %then
		%do;
			%IFR_WRITE_ERROR(
				error_code = 100
				, error_text = Validation key - unique key violated
				,flt_id = 128
				flt_rec_txt=dups
				);
			%let processing_code = 1;
		%end;
%end;
%mend IFR_CHECK_KEYS;

%IFR_CHECK_KEYS;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Error message in the log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MPRINT(IFR_WRITE_ERROR):   TEXT = "Validation key - unique key violated";
SYMBOLGEN:  Macro variable FLT_ID resolves to 128     flt_rec_txt=dups
NOTE: Line generated by the macro variable "FLT_ID".
2433       128     flt_rec_txt=dups
                   ___________ ____________
                   22          557
ERROR: DATA STEP Component Object failure.  Aborted during the COMPILATION phase.
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, ;, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT, 
              IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=.  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If the Dups dataset has the dataset as below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;FLT_LAYR_NM&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;FYP_NM&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;_TEAM_NM&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DIS&lt;/TD&gt;&lt;TD&gt;Consistencycheck&lt;/TD&gt;&lt;TD&gt;Business&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DID&lt;/TD&gt;&lt;TD&gt;Rangecheck&lt;/TD&gt;&lt;TD&gt;Client&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then the desried result of the above program should be,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;error_code&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;error_text&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;flt_id&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;flt_rec_txt&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;128&lt;/TD&gt;&lt;TD&gt;DIS Consistencycheck Business DID Rangecheck Client&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 03 Oct 2019 12:28:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593685#M170421</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2019-10-03T12:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593688#M170424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292396"&gt;@David_Billa&lt;/a&gt;&amp;nbsp; &amp;nbsp;A quick look tells me you are missing a comma(,) here between the keyword parameters ,flt_id = 128&lt;BR /&gt;flt_rec_txt=dups&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So will this correction help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%IFR_WRITE_ERROR(&lt;BR /&gt;error_code = 100&lt;BR /&gt;, error_text = Validation key - unique key violated&lt;BR /&gt;,flt_id = 128&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;,flt_rec_txt=dups&lt;/STRONG&gt;&lt;BR /&gt;);&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 12:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593688#M170424</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-10-03T12:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593700#M170431</link>
      <description>No, it's a typo error and it didn't helped me either&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593700#M170431</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2019-10-03T13:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593701#M170432</link>
      <description>&lt;P&gt;So post the new error, as the old error was clearly caused by having wrong value passed to the parameter because of the missing comma.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593701#M170432</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-03T13:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593703#M170434</link>
      <description>&lt;P&gt;It looks like you want concatenate multiple rows into one string. But I don't see any code that is actually trying to so that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593703#M170434</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-03T13:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593705#M170436</link>
      <description>&lt;P&gt;After fixing the missing comma and removing a wrong %end, it works without errors:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro IFR_WRITE_ERROR(
			error_code =
			, error_text =
			, flt_id =
			,flt_rec_txt =		
			);

	data protocol;
		ERROR_CODE = &amp;amp;error_code.;
		TEXT = "&amp;amp;error_text.";
		flt_id=&amp;amp;flt_id.;
		flt_rec_txt="&amp;amp;flt_rec_txt.";
	run;

%mend IFR_WRITE_ERROR;

%macro IFR_CHECK_KEYS;

	proc sql noprint;
		select count(*)
			into :dup_columns
				from dups
		;
	quit;

	%if &amp;amp;dup_columns. &amp;gt; 0 %then
		%do;
			%IFR_WRITE_ERROR(
				error_code = 100
				, error_text = Validation key - unique key violated
				,flt_id = 128
				,flt_rec_txt=dups
				);
			%let processing_code = 1;
		%end;

%mend IFR_CHECK_KEYS;

data dups;
x = 1;
output;
output;
run;

%IFR_CHECK_KEYS;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:14:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593705#M170436</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-03T13:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593715#M170443</link>
      <description>What is the use of the macro variable processing_code?&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593715#M170443</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2019-10-03T13:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593717#M170444</link>
      <description>Because I'm not certain how to implement that logic in my program.&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593717#M170444</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2019-10-03T13:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593726#M170449</link>
      <description>&lt;P&gt;What if the value of X has more than one values? Or&lt;/P&gt;&lt;P&gt;The dups dataset has multiple variables and values?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 14:34:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593726#M170449</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2019-10-03T14:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593751#M170465</link>
      <description>&lt;P&gt;Please post your data in a usable format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  infile cards dsd dlm='|' truncover;
  input FLT_LAYR_NM :$10. FYP_NM :$30. _TEAM_NM :$30. ;
cards;
DIS|Consistencycheck|Business
DID|Rangecheck|Client
;
data expect;
  infile cards dsd dlm='|' truncover;
  input error_code error_text :$100. flt_id flt_rec_txt :$100. ;
cards;
100| |128|DIS Consistencycheck Business DID Rangecheck Client
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Not clear that there is any need for macro logic at all for this problem.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  length error_code 8 error_text $100 flt_id 8 flt_rec_txt $100 ;
  keep error_code -- flt_rec_txt;
  error_code=100;
  error_text=' ';
  flt_id=128;
  do until(eof);
    set have end=eof;
    flt_rec_txt=catx(' ',flt_rec_txt,flt_layr_nm,fyp_nm,_team_nm);
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;       error_    error_
Obs     code      text     flt_id                        flt_rec_txt

 1       100                 128     DIS Consistencycheck Business DID Rangecheck Client

&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Oct 2019 14:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593751#M170465</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-03T14:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593769#M170476</link>
      <description>There are too many checks in the form of macro program as per my initial&lt;BR /&gt;post. I just placed only the summarzied code for one check.&lt;BR /&gt;&lt;BR /&gt;Therefore I told that I want to tweak the code only in macro&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Oct 2019 15:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/593769#M170476</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2019-10-03T15:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/594032#M170601</link>
      <description>&lt;P&gt;After executing your code, I see the Output as follows. Instead of populating the values of the variables from 'dups' dataset in the last variable 'flt_rec_txt' it has written the text 'dups'. Could you please help me resolve this issue here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;ERROR_CODE&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;TEXT&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;flt_id&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;flt_rec_txt&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;Validation key - unique key violated&lt;/TD&gt;&lt;TD&gt;128&lt;/TD&gt;&lt;TD&gt;dups&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whereas the desired Output is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;ERROR_CODE&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;TEXT&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;flt_id&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;flt_rec_txt&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;Validation key - unique key violated&lt;/TD&gt;&lt;TD&gt;128&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 04 Oct 2019 05:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/594032#M170601</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2019-10-04T05:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/594061#M170609</link>
      <description>&lt;P&gt;If you want to handle the logic using macros, then how can you do that? Assume there are several HAVE datasets with multiple variables.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 10:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/594061#M170609</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2019-10-04T10:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/594094#M170621</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292396"&gt;@David_Billa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;If you want to handle the logic using macros, then how can you do that? Assume there are several HAVE datasets with multiple variables.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It sounds like you want to process each one and APPEND the results to some aggregate dataset.&lt;/P&gt;
&lt;P&gt;If the structure of the files is the same then the macro it probably very simple and just need to know the name of the current dataset that needs to be processed.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro do_one(dsname);

/* logic to process one file */
data this_one ;
  set &amp;amp;dsname ;
 ... 
run;

/* Aggregate to the master list */
proc append base=all_of_them data=this_one force;
run;

%mend do_one;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Oct 2019 13:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/594094#M170621</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-04T13:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/594097#M170622</link>
      <description>Problem is structure of the files are different. Then how to tackle it?&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Oct 2019 13:38:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/594097#M170622</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2019-10-04T13:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Capture error record in macro variable from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/594099#M170623</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292396"&gt;@David_Billa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Problem is structure of the files are different. Then how to tackle it?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No idea.&amp;nbsp; How are they different? Why are they different? What is it want out of them?&lt;/P&gt;
&lt;P&gt;Perhaps you don't actually want any of the data out of the files, just to create some information about the files. Like how many observations they contain.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 13:40:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capture-error-record-in-macro-variable-from-a-dataset/m-p/594099#M170623</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-04T13:40:06Z</dc:date>
    </item>
  </channel>
</rss>

