Oops.  I stand corrected.  "**" is not allowed in IDCAMS.  I forgot because I 
often use IKJEFTxx in batch and use the equivalent TSO commands for IDCAMS 
needs, and in that environment ** is valid.

Mea culpa for my error.

Peter

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Pommier, Rex R.
Sent: Wednesday, October 03, 2012 1:24 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: IDCAMS ODDITY?

Esmie,

As best I can see, neither of the examples you show below will work.  At least 
as of z/OS 1.10, the double asterisk was not a valid form of wildcarding 
dataset names within IDCAMS.  In addition, the single asterisk can only be used 
in place of a single qualifier, and you can only have one asterisk in a DSN.  
While other tools allow the double asterisk, IDCAMS does not.

So you could do an A.B.*.D, but you cannot do A.*.*.D.

HTH

Rex

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of esmie moo
Sent: Wednesday, October 03, 2012 12:10 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: IDCAMS ODDITY?

Now I am totally confused.

Peter,  am I understanding you correctly that if I had coded BAST.PROM1.** the 
alter command would have worked?

Elardus, are you saying that if I coded BAST.*.*.*.*.D12191 the alter would 
have worked?

Sorry for sounding like a donkey but could you clear it up?

Thanks.


________________________________
From: "Farley, Peter x23353" <peter.far...@broadridge.com>
To: IBM-MAIN@LISTSERV.UA.EDU
Sent: Wednesday, October 3, 2012 12:57:42 PM
Subject: Re: IDCAMS ODDITY?

John,

Actually that's not true.  The restriction is to one wildcarded qualifier.  It 
does not necessarily need to be the last.

The OP's original example

BAST.PROM1.*.*.*.*

Is correctly coded as

BAST.PROM1.**

But AFAIK this is just as legal:

BAST.PROM1.**.D12191

Peter

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of McKown, John
Sent: Wednesday, October 03, 2012 12:44 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: IDCAMS ODDITY?

WAD. You can only "wild card" the last node with IDCAMS. I have other utilities 
from other vendors which can do otherwise. Such a Co:Z Data Set Pipes' 
"catsearch", which is a UNIX command.

catsearch 'bast.prom1.**' |\
while read i;do tsocmd "alter $i mgmtclas(mnobk2)";done

>From a UNIX shell which is properly set up. The alter can be left in lower 
>case because "tsocmd" automatically uppercases.

--
John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 . N. Richland Hills . TX 76010
(817) 255-3225 phone .
john.mck...@healthmarkets.com . www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM


> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of esmie moo
> Sent: Wednesday, October 03, 2012 11:33 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: IDCAMS ODDITY?
>
> Good Morning Gentle Readers,
>
> I am not sure if it is a fluke.  I am trying to alter the MGMTCLASS of
> a ton of dsns (SMS ACS for the MGMTCLAS has been changed) which are
> migrated or on DASD.  The dsns have 6 qualifiers.  When I try this
> ALTER command  :
> ALTER BAST.PROM1.*.*.*.*     -
>       MGMTCLAS (MNOBK2)
>
> I get the following error message:
> IDC3203I ITEM 'BAST.PROM1.*.*.*.*' DOES NOT ADHERE TO RESTRICTIONS
> IDC3202I ABOVE TEXT BYPASSED UNTIL NEXT COMMAND. CONDITION CODE IS 12
>
> However, I tried the following and it worked:
>
>     ALTER BAST.PROM1.PROD.LIV.JCLLIB2.*    -
>           MGMTCLAS (MNOBK5)
> IDC0531I ENTRY BAST.PROM1.PROD.LIV.JCLLIB2.D12191 ALTERED IDC0531I
> ENTRY BAST.PROM1.PROD.LIV.JCLLIB2.D12228 ALTERED IDC0531I ENTRY
> BAST.PROM1.PROD.LIV.JCLLIB2.VER291 ALTERED IDC0531I ENTRY
> BAST.PROM1.PROD.LIV.JCLLIB2.VER367 ALTERED
>
> Does this mean that IDCAMS will only accept a WILDCARD for the last
> qualifier?
>
> Just curious if anybody has encountered this.
>
> Thanks.
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

The information contained in this e-mail may contain confidential and/or 
privileged information and is intended for the sole use of the intended 
recipient. If you are not the intended recipient, you are hereby notified that 
any unauthorized use, disclosure, distribution or copying of this communication 
is strictly prohibited and that you will be held responsible for any such 
unauthorized activity, including liability for any resulting damages. As 
appropriate, such incident(s) may also be reported to law enforcement. If you 
received this e-mail in error, please reply to sender and destroy or delete the 
message and any attachments. Thank you.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to