<?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: Creating Mainframe GDG from SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-Mainframe-GDG-from-SAS/m-p/359509#M84553</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From&amp;nbsp;&lt;EM&gt;What's New in SAS(R) 9.4&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/whatsnew/64788/HTML/default/viewer.htm#n14c8glgh3j7hxn1b1byjs3sqnvz.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/whatsnew/64788/HTML/default/viewer.htm#n14c8glgh3j7hxn1b1byjs3sqnvz.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="p13o5hpsjhd95bn19dl8xlqyyymm" class="xis-paragraph"&gt;
&lt;DIV id="p0eexlrt9bl4rqn1tjcfdjvpqday" class="xis-paraLeadIn"&gt;The &lt;SPAN class="xis-codeFocus"&gt;fourth maintenance release&lt;/SPAN&gt; for SAS 9.4 has these new features:&lt;/DIV&gt;
&lt;DIV class="xis-listUnordered"&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV id="n1so0pzr0zlfodn1vpws6m63e4tf" class="xis-item"&gt;
&lt;DIV id="p19vhysqongn0dn1g5vv72r1dy2b" class="xis-paraSimpleFirst"&gt;The .spds9 file extension is supported.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p03va8cxna08n1n1muokptky26r0" class="xis-item"&gt;
&lt;DIV id="p1ueu0rqxu8aehn1t4ctg39z5bk6" class="xis-paraSimpleFirst"&gt;FILE/INFILE statement processing supports the BUFNO= SAS system option.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p0war6v7eevdobn1v09homnumpge" class="xis-item"&gt;
&lt;DIV id="n0yfrv89g3qpzjn1sreg5sgaohhr" class="xis-paraSimpleFirst"&gt;S&lt;FONT color="#993300"&gt;AS added support for the IBM &lt;SPAN class="xis-nobr"&gt;z/OS&lt;/SPAN&gt; V2R2 Extended Format Generation Data Group (GDG)&lt;/FONT&gt;, which allows up to 999 generation data sets to be associated with the GDG.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="p121g0oiuvwxywn15lbozfjmy687" class="xis-paragraph"&gt;For more information, see &lt;A title="opens in a new window or tab" href="http://support.sas.com/documentation/cdlutility/cdlredirect.htm?locale=en&amp;amp;alias=hosto390&amp;amp;pubcode=69824&amp;amp;id=titlepage" target="_blank"&gt;SAS Companion for z/OS&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;And here the details in the&amp;nbsp;&lt;EM&gt;SAS® 9.4 Companion for z/OS, Sixth Edition&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hosto390/69824/HTML/default/viewer.htm#p0shb0yzl85r9dn1sko98tjcyck6.htm&amp;nbsp;" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hosto390/69824/HTML/default/viewer.htm#p0shb0yzl85r9dn1sko98tjcyck6.htm&amp;nbsp;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Wed, 17 May 2017 22:35:27 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2017-05-17T22:35:27Z</dc:date>
    <item>
      <title>Creating Mainframe GDG from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Mainframe-GDG-from-SAS/m-p/359461#M84533</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we create new GDGs on Mainframe by exporting files?&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 19:13:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Mainframe-GDG-from-SAS/m-p/359461#M84533</guid>
      <dc:creator>SASUSER21</dc:creator>
      <dc:date>2017-05-17T19:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Mainframe GDG from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Mainframe-GDG-from-SAS/m-p/359467#M84534</link>
      <description>&lt;P&gt;You certainly can with SAS in batch.&amp;nbsp; With interactive SAS it depends on whether your site allows tape mounts for interactive users.&amp;nbsp; With modern VTS systems there probably isn't a good reason not to allow that but many mainframe sites restrict interactive tape mounts to IT support personnel.&amp;nbsp; Back in the day when tape mounts involved physically mounting actual tapes, such restrictions were probably warranted for sites with lots of "less than IT-savy" users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marty Rhodes&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 19:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Mainframe-GDG-from-SAS/m-p/359467#M84534</guid>
      <dc:creator>Marty_Rhodes</dc:creator>
      <dc:date>2017-05-17T19:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Mainframe GDG from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Mainframe-GDG-from-SAS/m-p/359484#M84543</link>
      <description>&lt;P&gt;Can you please share a sample code for the same.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 20:20:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Mainframe-GDG-from-SAS/m-p/359484#M84543</guid>
      <dc:creator>SASUSER21</dc:creator>
      <dc:date>2017-05-17T20:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Mainframe GDG from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Mainframe-GDG-from-SAS/m-p/359491#M84547</link>
      <description>&lt;P&gt;Since you said a new GDG, then I am assuming the GDG has not been defined yet.&amp;nbsp; You can do this with a small batch job that does a step like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//GDGDEF&amp;nbsp;&amp;nbsp; EXEC PGM=IDCAMS&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//SYSPRINT DD SYSOUT=*&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//SYSIN&amp;nbsp;&amp;nbsp;&amp;nbsp; DD *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; DEFINE GDG (NAME(MYGDG.DATA) -&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; LIMIT(20) NOEMPTY SCRATCH)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once your GDG has been defined to Z/OS, you can then use it with SAS.&amp;nbsp; I will assume you are running SAS in batch but there are equivalent ways to do it with interactive SAS.&amp;nbsp; Just add a DD to your SAS step that looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//GDGOUT &amp;nbsp; DD UNIT=DISK,SPACE=(TRK,(howevermanytracks,howevermanymoretracks),RLSE),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISP=(,CATLG,DELETE),DSN=MYGDG.DATA(+1)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "+1" adds a new generation to the GDG as generation 0.&amp;nbsp; You may need to specify&amp;nbsp; the DCB for your GDGOUT file depending on how you plan to write to it in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now just refer to the fileref GDGOUT in you SAS code that outputs whatever you want to write to the GDG.&amp;nbsp; For example to write to it in a DATA step you could use the SAS statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;file gdgout old;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;put "This will be writen to the GDG file 'MYGDG.DATA(0)' on Z/OS";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of this assumes you have permission to do these things at your mainframe site.&amp;nbsp; Does that help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 20:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Mainframe-GDG-from-SAS/m-p/359491#M84547</guid>
      <dc:creator>Marty_Rhodes</dc:creator>
      <dc:date>2017-05-17T20:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Mainframe GDG from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Mainframe-GDG-from-SAS/m-p/359509#M84553</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From&amp;nbsp;&lt;EM&gt;What's New in SAS(R) 9.4&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/whatsnew/64788/HTML/default/viewer.htm#n14c8glgh3j7hxn1b1byjs3sqnvz.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/whatsnew/64788/HTML/default/viewer.htm#n14c8glgh3j7hxn1b1byjs3sqnvz.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="p13o5hpsjhd95bn19dl8xlqyyymm" class="xis-paragraph"&gt;
&lt;DIV id="p0eexlrt9bl4rqn1tjcfdjvpqday" class="xis-paraLeadIn"&gt;The &lt;SPAN class="xis-codeFocus"&gt;fourth maintenance release&lt;/SPAN&gt; for SAS 9.4 has these new features:&lt;/DIV&gt;
&lt;DIV class="xis-listUnordered"&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV id="n1so0pzr0zlfodn1vpws6m63e4tf" class="xis-item"&gt;
&lt;DIV id="p19vhysqongn0dn1g5vv72r1dy2b" class="xis-paraSimpleFirst"&gt;The .spds9 file extension is supported.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p03va8cxna08n1n1muokptky26r0" class="xis-item"&gt;
&lt;DIV id="p1ueu0rqxu8aehn1t4ctg39z5bk6" class="xis-paraSimpleFirst"&gt;FILE/INFILE statement processing supports the BUFNO= SAS system option.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p0war6v7eevdobn1v09homnumpge" class="xis-item"&gt;
&lt;DIV id="n0yfrv89g3qpzjn1sreg5sgaohhr" class="xis-paraSimpleFirst"&gt;S&lt;FONT color="#993300"&gt;AS added support for the IBM &lt;SPAN class="xis-nobr"&gt;z/OS&lt;/SPAN&gt; V2R2 Extended Format Generation Data Group (GDG)&lt;/FONT&gt;, which allows up to 999 generation data sets to be associated with the GDG.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="p121g0oiuvwxywn15lbozfjmy687" class="xis-paragraph"&gt;For more information, see &lt;A title="opens in a new window or tab" href="http://support.sas.com/documentation/cdlutility/cdlredirect.htm?locale=en&amp;amp;alias=hosto390&amp;amp;pubcode=69824&amp;amp;id=titlepage" target="_blank"&gt;SAS Companion for z/OS&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;And here the details in the&amp;nbsp;&lt;EM&gt;SAS® 9.4 Companion for z/OS, Sixth Edition&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hosto390/69824/HTML/default/viewer.htm#p0shb0yzl85r9dn1sko98tjcyck6.htm&amp;nbsp;" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hosto390/69824/HTML/default/viewer.htm#p0shb0yzl85r9dn1sko98tjcyck6.htm&amp;nbsp;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 May 2017 22:35:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Mainframe-GDG-from-SAS/m-p/359509#M84553</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-05-17T22:35:27Z</dc:date>
    </item>
  </channel>
</rss>

