* in DSN



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

* in DSN

Postby arshadhrashid » Fri Oct 28, 2011 11:51 pm

Hi
In a simple IEBR14
//STEP1 EXEC PGM=IEFBR14
//DDFILE1 DD DSN=HLQ.ATEMP1,DISP=(OLD,DELETE,DELETE)
//SYSPRINT DD SYSOUT=*
/*
The dataset gets deleted but if I have * in the DSN name like
//DDFILE1 DD DSN=HLQ.ATEMP*,DISP=(OLD,DELETE,DELETE)

I get
IEFC628I INCORRECT USE OF ASTERISK IN THE DSN FIELD

Any idea?
Thanks
arshadhrashid
 
Posts: 70
Joined: Tue Jul 28, 2009 5:03 am
Has thanked: 0 time
Been thanked: 0 time

Re: * in DSN

 

Re: * in DSN

Postby enrico-sorichetti » Fri Oct 28, 2011 11:56 pm

IEFC628I INCORRECT USE OF ASTERISK IN THE DSN FIELD


what does the messages and codes tell about it
no reason to rewrite the same things that the manuals tells in a much better style

start from here
http://www-03.ibm.com/systems/z/os/zos/ ... index.html

and use the lookAT facility ( cut and paste the message number -IEFC628I )
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: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: * in DSN

Postby arshadhrashid » Sat Oct 29, 2011 12:05 am

Thanks for the hint
But these manuals have nothig new. It says the use of * where its not allowed.
Soultion is "remove it"
This is not what I am looking for,
How can I use "*" in my DSN to delete multiple files ?
arshadhrashid
 
Posts: 70
Joined: Tue Jul 28, 2009 5:03 am
Has thanked: 0 time
Been thanked: 0 time

Re: * in DSN

Postby BillyBoyo » Sat Oct 29, 2011 12:08 am

It might not be what you are looking for, but that is the way it is.

Have a look at IDCAMS and the DELETE in there.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: * in DSN

Postby Maxime B » Sat Oct 29, 2011 1:00 am

It's just like BillyBoyo said. IEFBR14 is a program with the purpose of doing nothing. It actually lets MVS handle the datasets. For your information, the IEF part of the name is only because of the naming convention and BR14 is the assembler instruction Branch Register 14, which is to return to the caller.
Maxime B
 
Posts: 21
Joined: Thu Oct 13, 2011 12:40 am
Has thanked: 0 time
Been thanked: 1 time

Re: * in DSN

Postby dick scherrer » Sat Oct 29, 2011 1:11 am

Hello,

Soultion is "remove it"
This is not what I am looking for,
How can I use "*" in my DSN to delete multiple files ?
As you have been told and seen in the manual - you cannot. There are JCL rules that have to be followed whether you like it or not. . . Suggest you learn the rules before trying to implement something unknown. Suggest you also believe what is in the manuals - it is very rare that they contain misinformation.

There are several ways to "mask" dataset names, but they are not in JCL.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: * in DSN

Postby arshadhrashid » Sat Oct 29, 2011 4:47 am

hi dick scherrer & BillyBoyo
Thanks for your input. IDCAMS alo has the same issue and new MASK feature also doesnot work.

So let me forget IEBR14 and IDCAMS,
and as you suggested
"There are several ways to "mask" dataset names, but they are not in JCL."

Can you point me towards some ?
Thanks
arshadhrashid
 
Posts: 70
Joined: Tue Jul 28, 2009 5:03 am
Has thanked: 0 time
Been thanked: 0 time

Re: * in DSN

Postby dick scherrer » Sat Oct 29, 2011 10:53 am

Hello,

Suggest you look at adrdssu/dfdss. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: * in DSN

Postby BillyBoyo » Sat Oct 29, 2011 1:43 pm

Maybe if next time you define your datasets as

Q.Q.Q.random


instead of

Q.Q.Qrandom.random


then you can get IDCAMS to "work" and won't have your storage people breathing down your neck.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times


Return to JCL