<?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 Override ddname in a proc from a jcl in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Override-ddname-in-a-proc-from-a-jcl/m-p/36157#M7115</link>
    <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
We have a scenario, wherein it is required to override the DDname in a proc from the JCL. Sample jcl and proc is as given below. I have tried three different ways to override the ddname, but none of them are working.&lt;BR /&gt;
&lt;BR /&gt;
I cannot use symbolics as there are some other constraints with it. This problem is only with the step executing SAS program, for any other proc I will be able to override the DDname. Please let me if there is any way to overcome this issue.&lt;BR /&gt;
&lt;BR /&gt;
JCL:&lt;BR /&gt;
&lt;BR /&gt;
------------------------------ &lt;BR /&gt;
//STEPA EXEC PROC=RAPROC&lt;BR /&gt;
//PSTEPC1.OUT1 DD DSN=HLQ1.TEST.FILE=(,CATLG) ---&amp;gt; Not working&lt;BR /&gt;
//OUT1 DD DSN=HLQ1.TEST.FILE,DISP=(,CATLG) ---&amp;gt; Not working&lt;BR /&gt;
//RAPROC.PSTEPC1.OUT1 DD DSN=HLQ1.TEST.FILE,DISP=(,CATLG) ---&amp;gt; Not working&lt;BR /&gt;
------------------------------ &lt;BR /&gt;
------------------------------ &lt;BR /&gt;
&lt;BR /&gt;
PROC:RAPROC&lt;BR /&gt;
&lt;BR /&gt;
//PSTEPC1   EXEC   SAS,   /* This step executes a sas program */&lt;BR /&gt;
//        PARM='SYSPARM=''&amp;amp;RPTNAME'''&lt;BR /&gt;
//OMLIST   DD     DSN=&amp;amp;&amp;amp;RESULTS,DISP=(OLD,DELETE)&lt;BR /&gt;
//OUT1    DD DUMMY&lt;BR /&gt;
//SYSIN    DD DSN=ABC.DEF.GHI(AAAAA),DISP=SHR</description>
    <pubDate>Mon, 25 May 2009 05:18:23 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-05-25T05:18:23Z</dc:date>
    <item>
      <title>Override ddname in a proc from a jcl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Override-ddname-in-a-proc-from-a-jcl/m-p/36157#M7115</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
We have a scenario, wherein it is required to override the DDname in a proc from the JCL. Sample jcl and proc is as given below. I have tried three different ways to override the ddname, but none of them are working.&lt;BR /&gt;
&lt;BR /&gt;
I cannot use symbolics as there are some other constraints with it. This problem is only with the step executing SAS program, for any other proc I will be able to override the DDname. Please let me if there is any way to overcome this issue.&lt;BR /&gt;
&lt;BR /&gt;
JCL:&lt;BR /&gt;
&lt;BR /&gt;
------------------------------ &lt;BR /&gt;
//STEPA EXEC PROC=RAPROC&lt;BR /&gt;
//PSTEPC1.OUT1 DD DSN=HLQ1.TEST.FILE=(,CATLG) ---&amp;gt; Not working&lt;BR /&gt;
//OUT1 DD DSN=HLQ1.TEST.FILE,DISP=(,CATLG) ---&amp;gt; Not working&lt;BR /&gt;
//RAPROC.PSTEPC1.OUT1 DD DSN=HLQ1.TEST.FILE,DISP=(,CATLG) ---&amp;gt; Not working&lt;BR /&gt;
------------------------------ &lt;BR /&gt;
------------------------------ &lt;BR /&gt;
&lt;BR /&gt;
PROC:RAPROC&lt;BR /&gt;
&lt;BR /&gt;
//PSTEPC1   EXEC   SAS,   /* This step executes a sas program */&lt;BR /&gt;
//        PARM='SYSPARM=''&amp;amp;RPTNAME'''&lt;BR /&gt;
//OMLIST   DD     DSN=&amp;amp;&amp;amp;RESULTS,DISP=(OLD,DELETE)&lt;BR /&gt;
//OUT1    DD DUMMY&lt;BR /&gt;
//SYSIN    DD DSN=ABC.DEF.GHI(AAAAA),DISP=SHR</description>
      <pubDate>Mon, 25 May 2009 05:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Override-ddname-in-a-proc-from-a-jcl/m-p/36157#M7115</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-25T05:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Override ddname in a proc from a jcl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Override-ddname-in-a-proc-from-a-jcl/m-p/36158#M7116</link>
      <description>Yes, this is a "feature" (pronounced limitation) of nested JCL PROCs, especially worse when you have multiple job-steps within a PROC.  Check your JCL manual for specifics on job-step overrides.  Unfortunately, what you are attempting to accomplish is not possible with nested JCL PROCs.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 25 May 2009 14:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Override-ddname-in-a-proc-from-a-jcl/m-p/36158#M7116</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-25T14:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Override ddname in a proc from a jcl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Override-ddname-in-a-proc-from-a-jcl/m-p/36159#M7117</link>
      <description>Thanks Scott, I learnt it now....

Message was edited by: sasdev</description>
      <pubDate>Tue, 26 May 2009 06:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Override-ddname-in-a-proc-from-a-jcl/m-p/36159#M7117</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-26T06:59:33Z</dc:date>
    </item>
  </channel>
</rss>

