<?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: Macro to read and edit PDS members in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-read-and-edit-PDS-members/m-p/29465#M5547</link>
    <description>You can use a DATA step approach to read/write a PDS member (preferably to a new PDS library, not in-place), either using INFILE/FILE or by using a FILENAME allocation.  First you will need to read the PDS directory to get the list of members to process - this can be done with PROC SOURCE.&lt;BR /&gt;
&lt;BR /&gt;
Have a look at the SAS Companion Guide for z/OS.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search arguments, this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
filename pds site:sas.com&lt;BR /&gt;
+"proc source" site:sas.com</description>
    <pubDate>Mon, 31 May 2010 11:38:58 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-05-31T11:38:58Z</dc:date>
    <item>
      <title>Macro to read and edit PDS members</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-read-and-edit-PDS-members/m-p/29464#M5546</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I need to find and replace a text string present in the PDS members. From the SAS Forum, &lt;A href="http://support.sas.com/forums/thread.jspa?messageID=9643▫" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=9643▫&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
I have managed to write a macro to read the PDS members. Now how should i edit these members, to do find and replace functionality.&lt;BR /&gt;
&lt;BR /&gt;
Kindly suggest me.&lt;BR /&gt;
&lt;BR /&gt;
Thanks In Advance..

Message was edited by: Pri</description>
      <pubDate>Mon, 31 May 2010 10:38:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-read-and-edit-PDS-members/m-p/29464#M5546</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-31T10:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to read and edit PDS members</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-read-and-edit-PDS-members/m-p/29465#M5547</link>
      <description>You can use a DATA step approach to read/write a PDS member (preferably to a new PDS library, not in-place), either using INFILE/FILE or by using a FILENAME allocation.  First you will need to read the PDS directory to get the list of members to process - this can be done with PROC SOURCE.&lt;BR /&gt;
&lt;BR /&gt;
Have a look at the SAS Companion Guide for z/OS.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search arguments, this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
filename pds site:sas.com&lt;BR /&gt;
+"proc source" site:sas.com</description>
      <pubDate>Mon, 31 May 2010 11:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-read-and-edit-PDS-members/m-p/29465#M5547</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-05-31T11:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to read and edit PDS members</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-read-and-edit-PDS-members/m-p/29466#M5548</link>
      <description>agree with Scott .... you should write a program to create a copy of the whole PDS with any changes you need within any relevant members. Programs add up to a whole lot less diskspace than the data and problems that can be caused by program-update-in-place.&lt;BR /&gt;
However, PROC SOURCE was built in the days when SAS only ran on IBM mainframes and it was useful to have a "deck" to recreate the "SOURCE" pds with the IBM utility iebupdte. The "Example 4: Update a Library Member" can be found at &lt;A href="http://publib.boulder.ibm.com/infocenter/zos/v1r9/topic/com.ibm.zos.r9.idau100/u1441.htm#u1441" target="_blank"&gt;http://publib.boulder.ibm.com/infocenter/zos/v1r9/topic/com.ibm.zos.r9.idau100/u1441.htm#u1441&lt;/A&gt;   &lt;BR /&gt;
This is not the direction I would recommend as the way to provide your best solution.&lt;BR /&gt;
Since you might like to replace a variable name or a formula, with something wider, program lines could become wider than the original. &lt;BR /&gt;
I would recommend writing a new pds(E) with variable length records supporting up to the normal 255 width default on other platforms. &lt;BR /&gt;
Once you have reviewed the resulting pds(e), [ use the "superce" compare utility to reduce the compare time ] swap original/new names.</description>
      <pubDate>Mon, 31 May 2010 15:45:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-read-and-edit-PDS-members/m-p/29466#M5548</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-05-31T15:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to read and edit PDS members</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-read-and-edit-PDS-members/m-p/29467#M5549</link>
      <description>Note that there are limitations to PROC SOURCE, if for other than processing the directory -- recommend read the directory and then input/parse/change/output your PDS members each in an individual DATA step.&lt;BR /&gt;
&lt;BR /&gt;
Also, there is another similar post/thread here in the EG forum:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=2518" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=2518&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 31 May 2010 16:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-read-and-edit-PDS-members/m-p/29467#M5549</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-05-31T16:43:08Z</dc:date>
    </item>
  </channel>
</rss>

