<?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 How to read previous 2 versions of SAS GDG files in SAS program? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60815#M7239</link>
    <description>I want to read 3 previous versions of SAS GDG files in SAS(I am Using JCL to RUN).</description>
    <pubDate>Fri, 31 Jul 2009 11:27:38 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-07-31T11:27:38Z</dc:date>
    <item>
      <title>How to read previous 2 versions of SAS GDG files in SAS program?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60815#M7239</link>
      <description>I want to read 3 previous versions of SAS GDG files in SAS(I am Using JCL to RUN).</description>
      <pubDate>Fri, 31 Jul 2009 11:27:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60815#M7239</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-31T11:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to read previous 2 versions of SAS GDG files in SAS program?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60816#M7240</link>
      <description>Hi:&lt;BR /&gt;
  The documentation has some good examples:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000934566.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000934566.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/253-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/253-31.pdf&lt;/A&gt;&lt;BR /&gt;
  &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 31 Jul 2009 11:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60816#M7240</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-07-31T11:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to read previous 2 versions of SAS GDG files in SAS program?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60817#M7241</link>
      <description>Just to be clear here, are you referencing the use of SAS Generation Data Sets as Cynthia referenced or MVS (IBM mainframe) GDG (Generation Data Group) datasets using your JCL?  If MVS GDG is correct, the next question would be to ask whether you have the SAS GDG "data library" on disk or is your SAS GDG "sequential format" data on tape?&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 31 Jul 2009 13:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60817#M7241</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-07-31T13:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to read previous 2 versions of SAS GDG files in SAS program?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60818#M7242</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
MVS GDG is correct and SAS GDG "sequential format" data on tape.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Narayana</description>
      <pubDate>Mon, 03 Aug 2009 04:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60818#M7242</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-03T04:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to read previous 2 versions of SAS GDG files in SAS program?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60819#M7243</link>
      <description>If you wish to process all of the SAS observations together, you must combine them together in a DATA step, using a SET statement with each JCL DDNAME defined uniquely in your batch JCL.  &lt;BR /&gt;
&lt;BR /&gt;
Also, if you want to minimize the number of tape drive allocations, you can use a combination of the UNIT=AFF=ddname JCL DD parameter and also use the OPEN=DEFER parameter on SET.  &lt;BR /&gt;
&lt;BR /&gt;
Refer to the SAS z/OS Companion Guide and the LIBNAME statement discussion on concatenation.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS 9.1.3 Companion for z/OS&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/onlinedoc/91pdf/sasdoc_913/base_zoscom_8406.pdf" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/91pdf/sasdoc_913/base_zoscom_8406.pdf&lt;/A&gt;</description>
      <pubDate>Mon, 03 Aug 2009 14:13:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60819#M7243</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-03T14:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to read previous 2 versions of SAS GDG files in SAS program?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60820#M7244</link>
      <description>Thanks Barry&lt;BR /&gt;
&lt;BR /&gt;
You mean to say like the followig code? If not Please give me sample code.&lt;BR /&gt;
Data Test;&lt;BR /&gt;
   Set lib1.file1&lt;BR /&gt;
         lib2.file2&lt;BR /&gt;
         lib3.file2;&lt;BR /&gt;
Run;&lt;BR /&gt;
&lt;BR /&gt;
//lib1   DD DSN=VXXXXX.Test.File1.V00,Disp=SHR&lt;BR /&gt;
//lib2   DD DSN=VXXXXX.Test.File2.V01,Disp=SHR&lt;BR /&gt;
//lib3   DD DSN=VXXXXX.Test.File3.V02,Disp=SHR</description>
      <pubDate>Tue, 04 Aug 2009 03:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60820#M7244</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-04T03:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to read previous 2 versions of SAS GDG files in SAS program?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60821#M7245</link>
      <description>Yes - correct, however you will use 3 tape drives even though you only need 1.  &lt;BR /&gt;
&lt;BR /&gt;
Again, from my previous reply, consider using the JCL DD parameter UNIT=AFF=&lt;FIRST_DDNAME&gt;  and also the OPEN=DEFER on the SET statement, both coded for efficiency / optimization.&lt;BR /&gt;
&lt;BR /&gt;
And you will want to confirm the SAS dataset name on the tape with PROC CONTENTS -- do not presume the names are "file1" and "file2".&lt;BR /&gt;
&lt;BR /&gt;
My suggestion: setup the JCL batch jobstream and submit it - you will see the results of your efforts.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;/FIRST_DDNAME&gt;</description>
      <pubDate>Tue, 04 Aug 2009 13:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-read-previous-2-versions-of-SAS-GDG-files-in-SAS-program/m-p/60821#M7245</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-04T13:41:08Z</dc:date>
    </item>
  </channel>
</rss>

