Walt, Thank you, I havent used the CAMLST macros before, so I appreciate everyon'es information. SMS could definitely be an issue... Scott J Ford
________________________________ From: Walt Farrell <[email protected]> To: [email protected] Sent: Wed, June 15, 2011 2:00:36 PM Subject: Re: CAMLST MACRO question On Wed, 15 Jun 2011 10:05:56 -0700, Scott Ford <[email protected]> wrote: >I have a quick process / CAMLST macro question after reading thru the DFHsmsdfp manual. >My situation is that I want to find a catalog QSAM file and then delete it..do I >assume I do the following in Assembler: > >1. CAMLST LOCATE INDAB where INDAB is the CAMLST macro with the dsname and >storage area >2. if this macro returns a R15 = 0 , means it was found >3. CAMLST CATALOG REMOVE where REMOVE ponts to CAMLST UNCAT,DSNAME >4 if this macro returns a R15=0 , means it was uncataloged >5. CAMLST SCRATCH ABC where ABC is CAMLST SCRATCH,DSNAME,,VOLIST,,OVRD > >If this process is correct, how do I know where the dsname 'lives', which volume ? or is that >returned in the LOCATE... You may have some problems with that processing. Just to make sure you're aware of some of them: (a) Step 3 might fail (I think) for SMS-managed data sets, as they can't be uncataloged. (b) For non-SMS-managed data sets, step 3 will succeed if you have either ALTER authority to the data set via your security product, or ALTER authority to the catalog. However, step 5 will only succeed if you have ALTER authority to the data set, or at least READ authority to the DASDVOL profile protecting the volume the data set is on. The net of this is that you might successfully uncatalog the data set, but fail to scratch it. (c) You may also need to do something different for migrated data sets (volser of MIGRAT, I think). -- Walt Farrell IBM STSM, z/OS Security Design ---------------------------------------------------------------------- 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 ---------------------------------------------------------------------- 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

