Page 1 of 1

IDCAMS and MASK

PostPosted: Fri Aug 10, 2018 2:45 pm
by samb01
Heelo,

i'd like to delete datasets with in % in the high level qualifier but it dosn't work :


DELETE     %CAFIF.SEQ.DATASET.*.FILE MASK
 

The error is :


IDC3238I A WILDCARD IN THE FIRST MASK QUALIFIER REQUIRES THE CATALOG
IDC3238I PARAMETER                                                  
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12                  

 


In this link, i can read : https://www.ibm.com/support/knowledgece ... 6i2172.htm

[quoteThe high level qualifier of the filter key must be fully qualified unless the CATALOG parameter is also supplied. In other words, the high level qualifier cannot contain a *, ** or %. ABC%.DATA.SET and **.DATA.SET and A*.DATA.SET are all examples of an invalid mask. If you want to specify names like ABC%.DATA.SET or **.DATA.SET or A*.DATA.SET where the high level qualifier is not fully qualified, you must also specify the CATALOG parameter
][/quote]

Wich is the syntaxe for the catalog paramters ?

Re: IDCAMS and MASK

PostPosted: Fri Aug 10, 2018 3:10 pm
by enrico-sorichetti
Wich is the syntaxe for the catalog paramters ?

faster to look at the manual for both the syntax and the examples

Re: IDCAMS and MASK

PostPosted: Sat Aug 11, 2018 2:18 pm
by willy jensen
The syntax is CATALOG(catalog-name), which you could have found in the manual 'zOS DFSMS Access Method Services for Catalogs'. An often quicker method is to do TSO HELP command-name, i. e. TSO HELP DELETE, if you are logged on to TSO, as I assume that you are. But you really really should read the manual, there might be some hints and warnings.
And to pre-empt you next question, you can use ISPF 3.4 to get the catalog names for you dataset mask.

Re: IDCAMS and MASK

PostPosted: Sat Aug 11, 2018 3:08 pm
by samb01
Thank you Willy.

Re: IDCAMS and MASK

PostPosted: Sun Aug 12, 2018 10:27 am
by steve-myers
willy jensen wrote:The syntax is CATALOG(catalog-name), which you could have found in the manual 'zOS DFSMS Access Method Services for Catalogs'. An often quicker method is to do TSO HELP command-name, i. e. TSO HELP DELETE, if you are logged on to TSO, as I assume that you are. But you really really should read the manual, there might be some hints and warnings.
And to pre-empt you next question, you can use ISPF 3.4 to get the catalog names for you dataset mask.

Yes. Mr. Jensen is correct. Most of us forget that many IDCAMS commands have a direct analog as TSO commands. DELETE is one of them.

A more compact summary of a single parameter in the TSO HELP facility is by using the OPERANDS keyword in the HELP command -
help delete op(catalog)

   CATALOG('catname/password')
            - Specifies the name of catalog containing the entries to be
              deleted.
   'catname'
            - Name of catalog containing the entries to be deleted.
   'password'
            - Master level password of the catalog.
   Required - 'catname'

 READY
One issue, sometimes, with TSO HELP data is it preserves what are usually considered obsolete data, like the catalog password.

Of course, if you need more information, you'll have to revert to the IDCAMS manual.

Re: IDCAMS and MASK

PostPosted: Sun Aug 12, 2018 12:35 pm
by samb01
Hello Steve loyers. I refered To the idcams ma url. I round the MASK syntax ut not si tu the catalog.
Thkank's.

Re: IDCAMS and MASK

PostPosted: Sun Aug 12, 2018 2:59 pm
by NicC
samb01, you need to check your post before submitting it. That last post is mostly unintelligible. Please repost.

Re: IDCAMS and MASK

PostPosted: Sun Aug 12, 2018 9:10 pm
by samb01
samb01 wrote:Hello Steve loyers. I refered To the idcams ma url. I round the MASK syntax ut not si tu the catalog.
Thkank's.

Sorry it's because of my smartphone.
Hello Steve. I refered To the IDCAMS manual. I found the MASK command. But i didn't found catalog 's syntax.