<?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 small query in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70183#M20200</link>
    <description>The code is same Scott. I have just changed the macro variable name. If you want it that way only,then Check out this code::::::::::::::::::::::::::::::::::::&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
infile datalines dlm = '|'  dsd;&lt;BR /&gt;
input name :$50. 'rh id'n ; &lt;BR /&gt;
datalines;&lt;BR /&gt;
a|2&lt;BR /&gt;
i|3&lt;BR /&gt;
c|7&lt;BR /&gt;
d|1&lt;BR /&gt;
e|0&lt;BR /&gt;
f|4&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
%MACRO SORT(DS= , KEY = );&lt;BR /&gt;
proc sort data =&amp;amp;DS;&lt;BR /&gt;
by &amp;amp;KEY ;&lt;BR /&gt;
run;&lt;BR /&gt;
%MEND SORT(DS= , KEY = );&lt;BR /&gt;
%SORT(DS = test,KEY = %str(%'RH ID%'n))&lt;BR /&gt;
/*************************************************************/&lt;BR /&gt;
&lt;BR /&gt;
And the log is as follow::::::::::::::::::::::::::::::::&lt;BR /&gt;
&lt;BR /&gt;
/*************************************/&lt;BR /&gt;
NOTE: The data set WORK.TEST has 6 observations and 2 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.03 seconds&lt;BR /&gt;
      user cpu time       0.01 seconds&lt;BR /&gt;
      system cpu time     0.00 seconds&lt;BR /&gt;
      Memory                            292k&lt;BR /&gt;
      Page Faults                       2&lt;BR /&gt;
      Page Reclaims                     0&lt;BR /&gt;
      Page Swaps                        0&lt;BR /&gt;
      Voluntary Context Switches        6&lt;BR /&gt;
      Involuntary Context Switches      1&lt;BR /&gt;
      Block Input Operations            0&lt;BR /&gt;
      Block Output Operations           0&lt;BR /&gt;
      &lt;BR /&gt;
&lt;BR /&gt;
24         ;&lt;BR /&gt;
25         run;&lt;BR /&gt;
26         %MACRO SORT(DS= , KEY = );&lt;BR /&gt;
27         proc sort data =&amp;amp;DS;&lt;BR /&gt;
28         by &amp;amp;KEY ;&lt;BR /&gt;
29         run;&lt;BR /&gt;
30         %MEND SORT(DS= , KEY = );&lt;BR /&gt;
WARNING: Extraneous information on %MEND statement ignored for macro definition SORT.&lt;BR /&gt;
31         %SORT(DS = test,KEY = %str(%'RH ID%'n))&lt;BR /&gt;
ERROR: Variable N not found.&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
NOTE: PROCEDURE SORT used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      user cpu time       0.00 seconds&lt;BR /&gt;
      system cpu time     0.01 seconds&lt;BR /&gt;
      Memory                            20k&lt;BR /&gt;
      Page Faults                       0&lt;BR /&gt;
      Page Reclaims                     0&lt;BR /&gt;
2                                                          The SAS System                            10:04 Wednesday, March 24, 2010&lt;BR /&gt;
&lt;BR /&gt;
      Page Swaps                        0&lt;BR /&gt;
      Voluntary Context Switches        0&lt;BR /&gt;
      Involuntary Context Switches      0&lt;BR /&gt;
      Block Input Operations            0&lt;BR /&gt;
      Block Output Operations           0&lt;BR /&gt;
      &lt;BR /&gt;
NOTE: Line generated by the macro variable "KEY".&lt;BR /&gt;
31          'RH ID'n&lt;BR /&gt;
            _&lt;BR /&gt;
            22&lt;BR /&gt;
              __&lt;BR /&gt;
              202&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: a name, ;, DECENDING, DESCENDING, DESENDING, _ALL_, _CHARACTER_, &lt;BR /&gt;
              _CHAR_, _NUMERIC_.  &lt;BR /&gt;
ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;
32         &lt;BR /&gt;
33         %LET _CLIENTTASKLABEL=;&lt;BR /&gt;
34         %LET _EGTASKLABEL=;&lt;BR /&gt;
35         %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;
36         %LET _SASPROGRAMFILE=;&lt;BR /&gt;
37         &lt;BR /&gt;
38         ;*';*";*/;quit;run;&lt;BR /&gt;
39         ODS _ALL_ CLOSE;&lt;BR /&gt;
40         &lt;BR /&gt;
41         &lt;BR /&gt;
42         QUIT; RUN;&lt;BR /&gt;
43         &lt;BR /&gt;
/****************************************************************/</description>
    <pubDate>Wed, 24 Mar 2010 06:25:59 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-03-24T06:25:59Z</dc:date>
    <item>
      <title>A small query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70177#M20194</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
This is the macro program i am using&lt;BR /&gt;
%MACRO SORT(DS= , KEY = );&lt;BR /&gt;
proc sort data =&amp;amp;DS;&lt;BR /&gt;
by &amp;amp;KEY ;&lt;BR /&gt;
run;&lt;BR /&gt;
%MEND SORT(DS= , KEY = );&lt;BR /&gt;
&lt;BR /&gt;
While calling this macro, one of my column name has space in it. So i am using %bquote like this&lt;BR /&gt;
&lt;BR /&gt;
%SORT(DS = MAPPINGFILE,KEY = %bquote('RH ID'n))&lt;BR /&gt;
&lt;BR /&gt;
After this the macro variable key is getting resolved to 'RH ID'n but i am not able to sort the data and getting an error. It is saying column N could not be found..The foolowing is the log.............................&lt;BR /&gt;
/**********************************************/&lt;BR /&gt;
NOTE: Writing HTML(EGHTML) Body file: EGHTML&lt;BR /&gt;
11         ODS HTML(ID=EGHTML) FILE=EGHTML ENCODING='utf-8' STYLE=EGDefault&lt;BR /&gt;
11       ! STYLESHEET=(URL="file:///C:/Program%20Files/SAS/Shared%20Files/BIClientStyles/EGDefault.css")&lt;BR /&gt;
11       ! ATTRIBUTES=("CODEBASE"="http://www2.sas.com/codebase/graph/v91/sasgraph.exe") NOGTITLE NOGFOOTNOTE GPATH=&amp;amp;sasworklocation&lt;BR /&gt;
11       ! ;&lt;BR /&gt;
SYMBOLGEN:  Macro variable SYSVLONG resolves to 9.01.01M3P020206&lt;BR /&gt;
SYMBOLGEN:  Macro variable GRAPHAVAIL resolves to 9.01 TS1M3&lt;BR /&gt;
12         &lt;BR /&gt;
13         %gaccessible;&lt;BR /&gt;
SYMBOLGEN:  Macro variable ACCESSIBLE resolves to ACCESSIBLE&lt;BR /&gt;
14         %SORT(DS = MAPPINGFILE,KEY = %bquote('RH ID'n));&lt;BR /&gt;
SYMBOLGEN:  Macro variable DS resolves to MAPPINGFILE&lt;BR /&gt;
SYMBOLGEN:  Macro variable KEY resolves to 'RH ID'n&lt;BR /&gt;
SYMBOLGEN:  Some characters in the above value which were subject to macro quoting have been unquoted for printing.&lt;BR /&gt;
NOTE: Line generated by the macro variable "KEY".&lt;BR /&gt;
14          'RH ID'n&lt;BR /&gt;
            _&lt;BR /&gt;
            22&lt;BR /&gt;
              __&lt;BR /&gt;
              202&lt;BR /&gt;
ERROR: Variable N not found.&lt;BR /&gt;
&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: a name, ;, DECENDING, DESCENDING, DESENDING, _ALL_, _CHARACTER_, &lt;BR /&gt;
              _CHAR_, _NUMERIC_.  &lt;BR /&gt;
&lt;BR /&gt;
ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;
/********************************************/&lt;BR /&gt;
&lt;BR /&gt;
So please tell how can i invoke this macro if column name is having space?</description>
      <pubDate>Tue, 23 Mar 2010 09:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70177#M20194</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-23T09:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: A small query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70178#M20195</link>
      <description>You want to use the %STR macro function.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS Macro Language: Reference, %STR and %NRSTR Functions&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a001061290.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a001061290.htm&lt;/A&gt;</description>
      <pubDate>Tue, 23 Mar 2010 11:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70178#M20195</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-23T11:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: A small query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70179#M20196</link>
      <description>Hi Scott&lt;BR /&gt;
&lt;BR /&gt;
I ahve already tried that one but it doesnt work.&lt;BR /&gt;
&lt;BR /&gt;
%SORT(DS = MAPPINGFILE,KEY = %str(%'RH ID%'n))&lt;BR /&gt;
&lt;BR /&gt;
Nd wats the difference if i use %str like the mentioned above and %bqoute which i have posted earlier...</description>
      <pubDate>Tue, 23 Mar 2010 18:32:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70179#M20196</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-23T18:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: A small query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70180#M20197</link>
      <description>However, I ran your code with %STR( ) coded and it sure worked for me.  Reply  with a pasted SAS log where the use of %str(...) does not work, please.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 23 Mar 2010 20:30:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70180#M20197</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-23T20:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: A small query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70181#M20198</link>
      <description>Hi Scott&lt;BR /&gt;
&lt;BR /&gt;
/*This is my code and i am using sas eg 4.1*/&lt;BR /&gt;
data test;&lt;BR /&gt;
infile datalines dlm = '|'  dsd;&lt;BR /&gt;
input name :$ 'rh id'n ; &lt;BR /&gt;
datalines;&lt;BR /&gt;
a|2&lt;BR /&gt;
b|3&lt;BR /&gt;
c|7&lt;BR /&gt;
d|1&lt;BR /&gt;
e|0&lt;BR /&gt;
f|4&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
%macro sort(ds1=,key=);&lt;BR /&gt;
PROC SORT DATA = &amp;amp;DS1;&lt;BR /&gt;
BY &amp;amp;KEY;&lt;BR /&gt;
RUN;&lt;BR /&gt;
%mend sort;&lt;BR /&gt;
%sort(ds1 = test,key = %str(%'rh id%'n));&lt;BR /&gt;
/* After this i am getting error:::&lt;BR /&gt;
   ODS HTML(ID=EGHTML) FILE=EGHTML ENCODING='utf-8' STYLE=EGDefault&lt;BR /&gt;
11       ! STYLESHEET=(URL="file:///C:/Program%20Files/SAS/Shared%20Files/BIClientStyles/EGDefault.css")&lt;BR /&gt;
11       ! ATTRIBUTES=("CODEBASE"="http://www2.sas.com/codebase/graph/v91/sasgraph.exe") NOGTITLE NOGFOOTNOTE GPATH=&amp;amp;sasworklocation&lt;BR /&gt;
11       ! ;&lt;BR /&gt;
12         &lt;BR /&gt;
13         %gaccessible;&lt;BR /&gt;
14         %macro sort(ds1=,key=);&lt;BR /&gt;
15         PROC SORT DATA = &amp;amp;DS1;&lt;BR /&gt;
16         BY &amp;amp;KEY;&lt;BR /&gt;
17         RUN;&lt;BR /&gt;
18         %mend sort;&lt;BR /&gt;
19         %sort(ds1 = test,key = %str(%'rh id%'n));&lt;BR /&gt;
ERROR: Variable N not found.&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
NOTE: PROCEDURE SORT used (Total process time):&lt;BR /&gt;
      real time           0.02 seconds&lt;BR /&gt;
      user cpu time       0.00 seconds&lt;BR /&gt;
      system cpu time     0.01 seconds&lt;BR /&gt;
      Memory                            20k&lt;BR /&gt;
      Page Faults                       1&lt;BR /&gt;
      Page Reclaims                     0&lt;BR /&gt;
      Page Swaps                        0&lt;BR /&gt;
      Voluntary Context Switches        1&lt;BR /&gt;
      Involuntary Context Switches      1&lt;BR /&gt;
      Block Input Operations            0&lt;BR /&gt;
      Block Output Operations           0&lt;BR /&gt;
      &lt;BR /&gt;
NOTE: Line generated by the macro variable "KEY".&lt;BR /&gt;
19          'rh id'n&lt;BR /&gt;
            _&lt;BR /&gt;
            22&lt;BR /&gt;
              __&lt;BR /&gt;
              202&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: a name, ;, DECENDING, DESCENDING, DESENDING, _ALL_, _CHARACTER_, &lt;BR /&gt;
              _CHAR_, _NUMERIC_.  &lt;BR /&gt;
ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;
20         &lt;BR /&gt;
21         %LET _CLIENTTASKLABEL=;&lt;BR /&gt;
22         %LET _EGTASKLABEL=;&lt;BR /&gt;
23         %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;
24         %LET _SASPROGRAMFILE=;&lt;BR /&gt;
25         &lt;BR /&gt;
26         ;*';*";*/;quit;run;&lt;BR /&gt;
27         ODS _ALL_ CLOSE;&lt;BR /&gt;
2                                                          The SAS System                            10:04 Wednesday, March 24, 2010&lt;BR /&gt;
&lt;BR /&gt;
28         &lt;BR /&gt;
29         &lt;BR /&gt;
30         QUIT; RUN;&lt;BR /&gt;
31         &lt;BR /&gt;
*/</description>
      <pubDate>Wed, 24 Mar 2010 04:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70181#M20198</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-24T04:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: A small query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70182#M20199</link>
      <description>Your code changed from the first post.  Instead of %bquote, use %str with the first code example and it will work, as I suggested.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 24 Mar 2010 06:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70182#M20199</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-24T06:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: A small query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70183#M20200</link>
      <description>The code is same Scott. I have just changed the macro variable name. If you want it that way only,then Check out this code::::::::::::::::::::::::::::::::::::&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
infile datalines dlm = '|'  dsd;&lt;BR /&gt;
input name :$50. 'rh id'n ; &lt;BR /&gt;
datalines;&lt;BR /&gt;
a|2&lt;BR /&gt;
i|3&lt;BR /&gt;
c|7&lt;BR /&gt;
d|1&lt;BR /&gt;
e|0&lt;BR /&gt;
f|4&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
%MACRO SORT(DS= , KEY = );&lt;BR /&gt;
proc sort data =&amp;amp;DS;&lt;BR /&gt;
by &amp;amp;KEY ;&lt;BR /&gt;
run;&lt;BR /&gt;
%MEND SORT(DS= , KEY = );&lt;BR /&gt;
%SORT(DS = test,KEY = %str(%'RH ID%'n))&lt;BR /&gt;
/*************************************************************/&lt;BR /&gt;
&lt;BR /&gt;
And the log is as follow::::::::::::::::::::::::::::::::&lt;BR /&gt;
&lt;BR /&gt;
/*************************************/&lt;BR /&gt;
NOTE: The data set WORK.TEST has 6 observations and 2 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.03 seconds&lt;BR /&gt;
      user cpu time       0.01 seconds&lt;BR /&gt;
      system cpu time     0.00 seconds&lt;BR /&gt;
      Memory                            292k&lt;BR /&gt;
      Page Faults                       2&lt;BR /&gt;
      Page Reclaims                     0&lt;BR /&gt;
      Page Swaps                        0&lt;BR /&gt;
      Voluntary Context Switches        6&lt;BR /&gt;
      Involuntary Context Switches      1&lt;BR /&gt;
      Block Input Operations            0&lt;BR /&gt;
      Block Output Operations           0&lt;BR /&gt;
      &lt;BR /&gt;
&lt;BR /&gt;
24         ;&lt;BR /&gt;
25         run;&lt;BR /&gt;
26         %MACRO SORT(DS= , KEY = );&lt;BR /&gt;
27         proc sort data =&amp;amp;DS;&lt;BR /&gt;
28         by &amp;amp;KEY ;&lt;BR /&gt;
29         run;&lt;BR /&gt;
30         %MEND SORT(DS= , KEY = );&lt;BR /&gt;
WARNING: Extraneous information on %MEND statement ignored for macro definition SORT.&lt;BR /&gt;
31         %SORT(DS = test,KEY = %str(%'RH ID%'n))&lt;BR /&gt;
ERROR: Variable N not found.&lt;BR /&gt;
&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
NOTE: PROCEDURE SORT used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      user cpu time       0.00 seconds&lt;BR /&gt;
      system cpu time     0.01 seconds&lt;BR /&gt;
      Memory                            20k&lt;BR /&gt;
      Page Faults                       0&lt;BR /&gt;
      Page Reclaims                     0&lt;BR /&gt;
2                                                          The SAS System                            10:04 Wednesday, March 24, 2010&lt;BR /&gt;
&lt;BR /&gt;
      Page Swaps                        0&lt;BR /&gt;
      Voluntary Context Switches        0&lt;BR /&gt;
      Involuntary Context Switches      0&lt;BR /&gt;
      Block Input Operations            0&lt;BR /&gt;
      Block Output Operations           0&lt;BR /&gt;
      &lt;BR /&gt;
NOTE: Line generated by the macro variable "KEY".&lt;BR /&gt;
31          'RH ID'n&lt;BR /&gt;
            _&lt;BR /&gt;
            22&lt;BR /&gt;
              __&lt;BR /&gt;
              202&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: a name, ;, DECENDING, DESCENDING, DESENDING, _ALL_, _CHARACTER_, &lt;BR /&gt;
              _CHAR_, _NUMERIC_.  &lt;BR /&gt;
ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;
32         &lt;BR /&gt;
33         %LET _CLIENTTASKLABEL=;&lt;BR /&gt;
34         %LET _EGTASKLABEL=;&lt;BR /&gt;
35         %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;
36         %LET _SASPROGRAMFILE=;&lt;BR /&gt;
37         &lt;BR /&gt;
38         ;*';*";*/;quit;run;&lt;BR /&gt;
39         ODS _ALL_ CLOSE;&lt;BR /&gt;
40         &lt;BR /&gt;
41         &lt;BR /&gt;
42         QUIT; RUN;&lt;BR /&gt;
43         &lt;BR /&gt;
/****************************************************************/</description>
      <pubDate>Wed, 24 Mar 2010 06:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70183#M20200</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-24T06:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: A small query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70184#M20201</link>
      <description>Suit yourself - the code is not the same as initial post - check it out from your original post, you used:&lt;BR /&gt;
&lt;BR /&gt;
%SORT(DS = MAPPINGFILE,KEY = %bquote('RH ID'n))&lt;BR /&gt;
&lt;BR /&gt;
which will work if coded as:&lt;BR /&gt;
&lt;BR /&gt;
%SORT(DS = MAPPINGFILE,KEY = %str('RH ID'n))&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 24 Mar 2010 06:40:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70184#M20201</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-24T06:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: A small query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70185#M20202</link>
      <description>Thanks Scott&lt;BR /&gt;
&lt;BR /&gt;
And i havnt changed the code. Just the name of the dataset was changed. And for knowledge i want to know&lt;BR /&gt;
If i am using this ::&lt;BR /&gt;
%SORT(DS = MAPPINGFILE,KEY = %str('RH ID'n));&lt;BR /&gt;
then its working&lt;BR /&gt;
But if i use these::::&lt;BR /&gt;
%SORT(DS = MAPPINGFILE,KEY = %bquote('RH ID'n));&lt;BR /&gt;
or&lt;BR /&gt;
%SORT(DS = MAPPINGFILE,KEY = %str(%'RH ID%'n));&lt;BR /&gt;
&lt;BR /&gt;
Then it is showing error but why so..coz %bquote  or %str(%'RH ID%'n), as i think are to mask qoutes in a string .....</description>
      <pubDate>Wed, 24 Mar 2010 06:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-small-query/m-p/70185#M20202</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-24T06:53:59Z</dc:date>
    </item>
  </channel>
</rss>

