IDCAMS and MASK



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

IDCAMS and MASK

Postby samb01 » Fri Aug 10, 2018 2:45 pm

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 ?
samb01
 
Posts: 292
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: IDCAMS and MASK

 

Re: IDCAMS and MASK

Postby enrico-sorichetti » Fri Aug 10, 2018 3:10 pm

Wich is the syntaxe for the catalog paramters ?

faster to look at the manual for both the syntax and the examples
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2776
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 147 times

Re: IDCAMS and MASK

Postby willy jensen » Sat Aug 11, 2018 2:18 pm

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.
willy jensen
 
Posts: 175
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 25 times

Re: IDCAMS and MASK

Postby samb01 » Sat Aug 11, 2018 3:08 pm

Thank you Willy.
samb01
 
Posts: 292
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: IDCAMS and MASK

Postby steve-myers » Sun Aug 12, 2018 10:27 am

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.
steve-myers
Global moderator
 
Posts: 1944
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 209 times

Re: IDCAMS and MASK

Postby samb01 » Sun Aug 12, 2018 12:35 pm

Hello Steve loyers. I refered To the idcams ma url. I round the MASK syntax ut not si tu the catalog.
Thkank's.
samb01
 
Posts: 292
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: IDCAMS and MASK

Postby NicC » Sun Aug 12, 2018 2:59 pm

samb01, you need to check your post before submitting it. That last post is mostly unintelligible. Please repost.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2812
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 116 times

Re: IDCAMS and MASK

Postby samb01 » Sun Aug 12, 2018 9:10 pm

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.
samb01
 
Posts: 292
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post