Yes, you can use the RELATE function of DEFINE (I may have the fields backward,
if so - sorry) 

DEFINE ALIAS (NAME(JOEBLOW.FOOBAR) RELATE(SYS1.FOOBAR))


However, make sure the security is setup for people to access JOEBLOW.FOOBAR and
SYS1.FOOBAR the same way.


You can also look at SYMBOLICRELATE
  DEFINE ALIAS (NAME(SYS1.FOOBAR) -
            SYMBOLICRELATE('JOEBLOW.FOOBAR'))

However, when a data set ALIAS of NON VSAM is created using DEFINE ALIAS
SYMBOLICRELATE and when a DELETE is done against the REAL data set, the data set
alias created using SYMBOLICRELATE is not deleted. This is because the entry is
not associated with any real data sets and it is only a catalog entry.

Lizette



> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of Charles Mills
> Sent: Monday, August 29, 2016 3:35 PM
> To: [email protected]
> Subject: Elementary dataset alias question
> 
> I'm a coder -- I barely know how to spell catalog -- but there are those of
> you on this list who have forgotten more about catalogs than I will ever know.
> 
> Here's the question. (And like all these things, there is a long story reason
> why doing things this way seems to make sense.)
> 
> SYS1.FOOBAR is a dataset cataloged in the master catalog. It's not "real
> special" like SYS1.LINKLIB or anything. It's an SMP/E-managed IBM product
> library. I don't think it is APF-authorized. I think it is linklisted if that
> makes a difference.
> 
> JOEBLOW is an ordinary userid.
> 
> Is it possible to create a catalog entry such that JOEBLOW.MY.FOO.BAR is an
> alias for SYS1.FOOBAR and batch DD references to JOEBLOW.MY.FOO.BAR will
> actually allocate SYS1.FOOBAR?
> 
> It seems to me it should be possible but people who know more about these
> things than I do tell me it is not possible. If it is possible, can you give
> me a couple of clues or pointers I could pass on to the relevant catalogers?
> 
> Environment z/OS V2R1 if it matters.
> 
> Thanks,
> 
> Charles

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to