Not sure whether this fits your situation, but a few years ago I identified a number of DSs with HLQs pertaining to IDs that no longer existed. (Really, when admins are cleaning up unused IDs, they need to look for the DSs too.) I don't remember exactly, but probably more than 400 and fewer than a thousand. I worked out with the sysprog that I would work on them one 1st-char at time and send her a list. She'd look at the list and tell me which ones to keep in place. My next REXX deleted some of them (ISPF libraries for example) and rename the rest by adding a HLQ that would let her examine and delete them at leisure. Sure, we know perfectly well that a lot of them will sit out there for the next 20 years, but at least they'll all be under her ID.
Searching for these DSs and adding the HLQ isn't a speedy process, but it worked. You shouldn't have any trouble writing such a routine. But maybe you meant you were looking for something prewritten? I'd have my doubts about that; seems to me there'd be too many special requirements at different installations. Oh, and one of the things the REXX had to do during the rename was give my ID temporary authority over datasets named A*.**, B*.**, C*.** and so on, one letter at a time. I could do that because I'm a security admin; if you're not, you probably need someone else to do that part for you. --- Bob Bridges, [email protected], cell 336 382-7313 /* [Hitler] has grasped the falsity of the hedonistic attitude to life. Nearly all western thought since the last war, certainly all ‘progressive’ thought, has assumed tacitly that human beings desire nothing beyond ease, security and avoidance of pain. In such a view of life there is no room, for instance, for patriotism and the military virtues....Hitler, because in his own joyless mind he feels it with exceptional strength, knows that human beings ~don’t~ want only comfort, safety, short working-hours, hygiene, birth-control and, in general, common sense; they also, at least intermittently, want struggle and self-sacrifice, not to mention drums, flags and loyalty-parades. However they may be as economic theories, Fascism and Nazism are psychologically far sounder than any hedonistic conception of life. -George Orwell, reviewing _Mein Kampf_ in 1940. */ -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of James Cradesh Sent: Thursday, October 20, 2022 17:51 What’s the solution to copying (actually moving)/ renaming hundreds of sms managed datasets? I’ve looked for rexx execs to do this but I’ve not come across anything. I’ve tried dfdss but changing the hlq of sms datasets doesn’t seem to work for me since I want to add a hlq not actually rename the hlq For example sys2 to newhlq.sys2. Perhaps a two step approach? Any suggestions? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
