> From: [email protected]
> I think the OP is looking for something with wildcard capabilities.
> For example rather than code PROC1 PROC2 PROC3 and ignore TPROC1 APROC1
> etc, the OP has coded
>
> PROC PDS DDNAME=RENLIB01;
> CHANGE YYY:=XXX:;
>
> Which is SAS-speak for Change all PROCs that being with YYY to XXX and the
> trailing characters should be left as is.

If you're okay with writing a small REXX script to describe what you want 
renamed, you can use SimpList to apply the script to every member in a PDS. 
Here's an example that's straight from the SimpList user guide:
 
/* REXX to rename all members from 'xx08xxxx' to 'xx09xxxx' */
arg input
parse var input dsn "(" memb ")" .
if substr(memb,3,2) = "08" then do
   slusrcmd = "R"
   slusrdat = overlay(09,memb,3)
   address ispexec "VPUT (SLUSRCMD SLUSRDAT) SHARED"
end
 
 
SLUSRCMD tells SimpList what function to reselect the member with after the 
REXX script has finished (in this case "R" for "Rename"), and SLUSRDAT tells 
SimpList what to rename the member to.
 
To apply this script to every member in a PDS you'd simply enter '1 *' on the 
member list command line. If necessary you could filter the member list before 
applying the script; e.g. you could include or exclude members based on their 
names, contents, ISPF statistics (etc). For example, if I wanted to exclude 
every member that contained the word IDENTIFICATION before doing the rename, 
I'd enter 'HIDE IDENTIFICATION ALL' and then enter '1 *'. 
 
SimpList isn't free but at $5,000 a year (for unlimited use by unlimited 
people) I'm sure it's a lot less than what you're currently paying for SAS? If 
you only need to do the renames one time you could even take SimpList for a 
free trial, do the renames, and hand it back. 
 
HTH,
 
Dave Salt
SimpList(tm) - try it; you'll get it!
http://www.mackinney.com/products/SIM/simplist.htm
 
_________________________________________________________________
Share photos with friends on Windows Live Messenger
http://go.microsoft.com/?linkid=9650734

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to