<?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: Query in macro and call execute in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415730#M102007</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your replies. It worked, In the same datastep&amp;nbsp;is it possible to check the job's log&amp;nbsp;which is located in a different location&amp;nbsp;and check if there is any error, if error, status ='F' else 'N'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logs Location : /app/sadata/logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is something like this(Initially it was in loop)- Something is definitely wrong here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename oscmd pipe "cd &amp;amp;loc.; ls &amp;amp;&amp;amp;jobs&amp;amp;i.*.log|sort|tail -1";&lt;BR /&gt;/* Reading this list of files into a data set. */&lt;BR /&gt;data oscmd ;&lt;BR /&gt;infile oscmd lrecl=200 truncover;&lt;BR /&gt;input file_name $100.;&lt;BR /&gt;run;&lt;BR /&gt;data _null_;&lt;BR /&gt;set oscmd;&lt;BR /&gt;call symputx("read",cats("&amp;amp;loc",'/',file_name));&lt;BR /&gt;run;&lt;BR /&gt;data _null_;&lt;BR /&gt;infile "&amp;amp;&amp;amp;read&amp;amp;i" missover truncover;&lt;BR /&gt;input;&lt;BR /&gt;rc=find(_INFILE_,'Error:'); /* Only read in data set lines. */&lt;BR /&gt;if rc ge 1 then&lt;BR /&gt;do;&lt;BR /&gt;/*%if ((_ERROR_ = 1) &amp;amp;&amp;amp; (%sysfunc(sysrc()) = 1) %then %do; */&lt;BR /&gt;status="F";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks ad Regards&lt;/P&gt;&lt;P&gt;Sandhya S&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2017 03:01:12 GMT</pubDate>
    <dc:creator>Sandy10</dc:creator>
    <dc:date>2017-11-23T03:01:12Z</dc:date>
    <item>
      <title>Query in macro and call execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415416#M101885</link>
      <description>&lt;P&gt;&lt;U&gt;Hi&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checkmaster is a work table contains attached data . I want to execute one by one jobs under JOBNAME when the val = 0 and runstatus=N &amp;nbsp;and then update teh status as per status variable in the code using update_status macro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My queries are :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The condition check always is false&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Please advise if my call execute statement to include a SAS script is correct or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using SAS 9.4 in LINUIX Environment .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Below is the code:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;opitons symbolgen mlogic mprint MINOPERATOR ;&lt;BR /&gt;%macro update_status(status=);&lt;BR /&gt;proc sql;&lt;BR /&gt;update exeng.EngineExecution set runstatus="&amp;amp;status"&lt;BR /&gt;where JobName=compress("&amp;amp;&amp;amp;jobs&amp;amp;cnt_h");&lt;BR /&gt;quit;&lt;BR /&gt;%mend update_status;&lt;BR /&gt;%global loc ;&lt;BR /&gt;%let loc=/app/ERM/sasdata/logs;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro jobex;&lt;BR /&gt;%let path=/app/scripts/jobs&lt;BR /&gt;%let extn=sas;&lt;BR /&gt;%global cnt_h;&lt;BR /&gt;%global jobs;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select count(jobname) into :cnt_h separated by ' ' from CHECK_MASTER ;&lt;BR /&gt;select jobname into :jobs1-:jobs%left(&amp;amp;cnt_h) from CHECK_MASTER;&lt;BR /&gt;quit;&lt;BR /&gt;data _null_;&lt;BR /&gt;set work.CHECK_MASTER;&lt;BR /&gt;/*call symputx ("val",val);*/&lt;BR /&gt;/*call symputx ("runstatus",runstatus);*/&lt;BR /&gt;%do i=1 %to &amp;amp;cnt_h;&lt;BR /&gt;%if ((val=0) AND (Runstatus = 'F' or RUNSTATUS='N' )) %then %do;&lt;/P&gt;&lt;P&gt;call execute('%include "&amp;amp;path./&amp;amp;&amp;amp;jobs&amp;amp;i...&amp;amp;extn"');&lt;BR /&gt;/*x "&amp;amp;path/&amp;amp;&amp;amp;jobs&amp;amp;i...&amp;amp;extn";*/&lt;BR /&gt;status="P";&lt;BR /&gt;%end;&lt;BR /&gt;%end;&lt;BR /&gt;run;&lt;BR /&gt;%mend jobex;&lt;BR /&gt;%jobex;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Log:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MPRINT(JOBEX): data _null_;&lt;BR /&gt;MPRINT(JOBEX): set work.CHECK_MASTER;&lt;BR /&gt;SYMBOLGEN: Macro variable CNT_H resolves to 9&lt;BR /&gt;MLOGIC(JOBEX): %DO loop beginning; index variable I; start value is 1; stop value is 9; by value is 1.&lt;BR /&gt;MLOGIC(JOBEX): %IF condition ((val=0) AND (Runstatus = 'F' or RUNSTATUS='N' )) is FALSE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandhya S&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 08:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415416#M101885</guid>
      <dc:creator>Sandy10</dc:creator>
      <dc:date>2017-11-22T08:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Query in macro and call execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415423#M101886</link>
      <description>&lt;P&gt;You are mixing macro and data step logic.&amp;nbsp; Remember that macro is a code generator - it runs before the boundary of whatever step is being written!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the following instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; %let path=/app/scripts/jobs;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; %let extn=sas;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; data _null_;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; set work.CHECK_MASTER;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; if ((val=0) AND (Runstatus = 'F' or RUNSTATUS='N' )) then do;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; call execute('%include "'!!cats("&amp;amp;path/",jobname,".&amp;amp;extn","';"));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status="P";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; end;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 08:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415423#M101886</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2017-11-22T08:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query in macro and call execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415424#M101887</link>
      <description>&lt;P&gt;This:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if ((val=0) AND (Runstatus = 'F' or RUNSTATUS='N' )) %then %do;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;can NEVER work. You are trying to use SAS dataset variables in macro language, where they simply are not present.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The macro &lt;U&gt;&lt;STRONG&gt;&lt;EM&gt;PRE&lt;/EM&gt;&lt;/STRONG&gt;&lt;/U&gt;processor does its work when code is &lt;EM&gt;fetched&lt;/EM&gt; for compilation and/or execution. It works only with program &lt;EM&gt;text&lt;/EM&gt;. So it compares the &lt;EM&gt;text&lt;/EM&gt; "val" with the &lt;EM&gt;text&lt;/EM&gt; "0", and this will always end up false. the same is true for the other parts of your conditions. Since you only want to compare data step values, use standard data step code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if ((val=0) AND (Runstatus = 'F' or RUNSTATUS='N' )) then do;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is of course just part of your problems. Let's go back to square one and define:&lt;/P&gt;
&lt;P&gt;- you have a list of jobs in a dataset, with additional variables&lt;/P&gt;
&lt;P&gt;- you want to scan through the dataset and run codes according to those additional variables&lt;/P&gt;
&lt;P&gt;Is that right?&lt;/P&gt;
&lt;P&gt;If yes, then no macro code is needed. Just use call execute() from the dataset with a simple if.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS you define macro update_status, but you never use it. Do not keep unused code in your programs, as that only causes confusion. Keep your programs neat and tidy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: fixed some typos&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 09:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415424#M101887</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-22T09:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query in macro and call execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415730#M102007</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your replies. It worked, In the same datastep&amp;nbsp;is it possible to check the job's log&amp;nbsp;which is located in a different location&amp;nbsp;and check if there is any error, if error, status ='F' else 'N'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logs Location : /app/sadata/logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is something like this(Initially it was in loop)- Something is definitely wrong here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename oscmd pipe "cd &amp;amp;loc.; ls &amp;amp;&amp;amp;jobs&amp;amp;i.*.log|sort|tail -1";&lt;BR /&gt;/* Reading this list of files into a data set. */&lt;BR /&gt;data oscmd ;&lt;BR /&gt;infile oscmd lrecl=200 truncover;&lt;BR /&gt;input file_name $100.;&lt;BR /&gt;run;&lt;BR /&gt;data _null_;&lt;BR /&gt;set oscmd;&lt;BR /&gt;call symputx("read",cats("&amp;amp;loc",'/',file_name));&lt;BR /&gt;run;&lt;BR /&gt;data _null_;&lt;BR /&gt;infile "&amp;amp;&amp;amp;read&amp;amp;i" missover truncover;&lt;BR /&gt;input;&lt;BR /&gt;rc=find(_INFILE_,'Error:'); /* Only read in data set lines. */&lt;BR /&gt;if rc ge 1 then&lt;BR /&gt;do;&lt;BR /&gt;/*%if ((_ERROR_ = 1) &amp;amp;&amp;amp; (%sysfunc(sysrc()) = 1) %then %do; */&lt;BR /&gt;status="F";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks ad Regards&lt;/P&gt;&lt;P&gt;Sandhya S&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 03:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415730#M102007</guid>
      <dc:creator>Sandy10</dc:creator>
      <dc:date>2017-11-23T03:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Query in macro and call execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415767#M102026</link>
      <description>&lt;P&gt;I see room for improvement, the call symputx can be moved into the first data step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
infile oscmd lrecl=200 truncover;
input file_name $100.;
call symputx("read",cats("&amp;amp;loc",'/',file_name));
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But here&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile "&amp;amp;&amp;amp;read&amp;amp;i" missover truncover;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You use a macro variable that should be named read1, read2, read3 etc, but you only created &amp;amp;read.&lt;/P&gt;
&lt;P&gt;Either remove the indirect reference, or make sure that &amp;amp;i is set, and change your call symputx:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;call symputx("read&amp;amp;i",cats("&amp;amp;loc",'/',file_name));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Nov 2017 08:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415767#M102026</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-23T08:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Query in macro and call execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415792#M102037</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used rc to get the return code of a job . Now I have another query, if it possible to use proc sql inside call execute ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When val=0, I am executing a set of jobs, when val = 1, then I have to check if its dependents run status if "P", if so then I have to execute the job. Dependents are in different table. Attached the data for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the Job J_DEF, val =1 , so I have to check MASTER table for the dependents(J_ABC&amp;nbsp;and J_FGH), then again compare with CHECK table to runstatus which is "P" , if "P", the &amp;nbsp;I have to trigger the job J_DEF &amp;nbsp;(This part I can use X command)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, below is the code. I am&amp;nbsp;stuck in else if part i.e, how to check another table and again use the same table .&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just a small set of jobs, so I am triggering based on a table &amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;set work.check;&lt;BR /&gt;if ((val=0) AND (Runstatus = 'F' or RUNSTATUS='' )) then do;&lt;BR /&gt;rc = system( cats("&amp;amp;path/",jobname,".&amp;amp;extn") );&lt;BR /&gt;if rc ge 1 then&lt;BR /&gt;do;&lt;BR /&gt;runstatus="F";&lt;BR /&gt;abort;&lt;BR /&gt;end;&lt;BR /&gt;else do;&lt;BR /&gt;runstatus="P";&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;else if ((val=1) AND (Runstatus = 'F' or RUNSTATUS='' )) then do;&lt;BR /&gt;call execute ()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sandhya S&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 10:45:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415792#M102037</guid>
      <dc:creator>Sandy10</dc:creator>
      <dc:date>2017-11-23T10:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query in macro and call execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415793#M102038</link>
      <description>&lt;P&gt;If CHECKMASTER is a SAS dataset, then post it as such.&lt;/P&gt;
&lt;P&gt;Use the macro provided in&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; to convert it to datastep code, and post the resulting code in a code posting window according to &lt;A href="https://communities.sas.com/t5/help/faqpage/faq-category-id/posting?nobounce" target="_blank"&gt;https://communities.sas.com/t5/help/faqpage/faq-category-id/posting?nobounce&lt;/A&gt;, just as I have done in my examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that Excel files are mostly useless. Since they are unstructured, they cannot convey important information about SAS datasets (variable types, lengths, etc.). Since MS Office files are major transport media for malware, their download from the internet is often blocked by company firewalls; even if no firewall blocks me, I don't download such files, as I don't want to have a serious talk with our auditors.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 11:00:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415793#M102038</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-23T11:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Query in macro and call execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415918#M102094</link>
      <description>&lt;P&gt;Hi Kurt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find below details.&lt;/P&gt;&lt;P&gt;When val=0, I am executing a set of jobs, when val = 1, then I have to check if its dependents run status if "P", if so then I have to execute the job. Dependents are in different table. Attached the data for your reference.&lt;BR /&gt;&lt;BR /&gt;For the Job J_RM_T_BSRM_MASTER002 in CHECK Table, val =1 , so I have to check MASTER table for the dependents(J_RM_T_BSRM_MASTER001 and J_RM_T_BSRM_MASTER003), then again compare with CHECK table to runstatus which is "P" , if "P", the I have to trigger the job J_RM_T_BSRM_MASTER002 (This part I can use X command)&lt;/P&gt;&lt;P&gt;Please note J_RM_T_BSRM_MASTER001 and J_RM_T_BSRM_MASTER003 will be triggered as ist dependents are with val=0, so it has to be triggered automatically.&lt;BR /&gt;&lt;BR /&gt;This is just a small set of jobs, so I am triggering based on a table .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the data for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data WORK.CHECK;&lt;BR /&gt;infile datalines dsd truncover;&lt;BR /&gt;input JOBNAME:$100. RUNSTATUS:$1. val:32.;&lt;BR /&gt;datalines4;&lt;BR /&gt;J_RM_T_BSRM_MASTER001,,1&lt;BR /&gt;J_RM_T_BSRM_CHILD001,,0&lt;BR /&gt;J_RM_T_BSRM_CHILD002,,0&lt;BR /&gt;J_RM_T_BSRM_CHILD003,,0&lt;BR /&gt;J_RM_T_BSRM_MASTER002,,1&lt;BR /&gt;J_RM_T_BSRM_MASTER003,,1&lt;BR /&gt;J_RM_T_BSRM_CHILD004,,0&lt;BR /&gt;J_RM_T_BSRM_CHILD005,,0&lt;BR /&gt;J_RM_T_BSRM_CHILD006,,0&lt;BR /&gt;;;;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data WORK.MASTER;&lt;BR /&gt;infile datalines dsd truncover;&lt;BR /&gt;input JOBNAME:$30. Dependentjobname:$30.;&lt;BR /&gt;datalines4;&lt;BR /&gt;J_RM_T_BSRM_MASTER001,J_RM_T_BSRM_CHILD001&lt;BR /&gt;J_RM_T_BSRM_MASTER001,J_RM_T_BSRM_CHILD002&lt;BR /&gt;J_RM_T_BSRM_MASTER001,J_RM_T_BSRM_CHILD003&lt;BR /&gt;J_RM_T_BSRM_MASTER002,J_RM_T_BSRM_MASTER001&lt;BR /&gt;J_RM_T_BSRM_MASTER002,J_RM_T_BSRM_MASTER003&lt;BR /&gt;J_RM_T_BSRM_MASTER003,J_RM_T_BSRM_CHILD004&lt;BR /&gt;J_RM_T_BSRM_MASTER003,J_RM_T_BSRM_CHILD005&lt;BR /&gt;J_RM_T_BSRM_MASTER003,J_RM_T_BSRM_CHILD006&lt;BR /&gt;;;;;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;BR /&gt;Sandhya S&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 06:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415918#M102094</guid>
      <dc:creator>Sandy10</dc:creator>
      <dc:date>2017-11-24T06:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query in macro and call execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415964#M102116</link>
      <description>Hi. Any update on my above query ? Kindly advise. Thanks.</description>
      <pubDate>Fri, 24 Nov 2017 09:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415964#M102116</guid>
      <dc:creator>Sandy10</dc:creator>
      <dc:date>2017-11-24T09:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Query in macro and call execute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415968#M102120</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&lt;BR /&gt;Any update on my above query ? Kindly advise. Thanks.</description>
      <pubDate>Fri, 24 Nov 2017 09:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-in-macro-and-call-execute/m-p/415968#M102120</guid>
      <dc:creator>Sandy10</dc:creator>
      <dc:date>2017-11-24T09:30:16Z</dc:date>
    </item>
  </channel>
</rss>

