View previous topic :: View next topic
|
Author |
Message |
ahmad
New User
Joined: 18 Oct 2008 Posts: 13 Location: Iran
|
|
|
|
hi
I have a question about export & import catalogs.
in IMPORT CONNECT command there is ALIAS parameter which will make the previous aliases of exported catalog for imported catalog. but it doesn't work. I wrote jcl code by mentioning the ALIAS parameter , but no alias made.
here it is my export import codes:
Code: |
//jobname JOB NOTIFY=uid,REGION=0M
// EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EXPORT UCAT.TEST01.uid -
DISCONNECT
/* |
Code: |
//jobname JOB NOTIFY=uid,REGION=0M
// EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
IMPORT CONNECT -
OBJECTS((UCAT.TEST01.uid -
DEVICETYPE(3390) -
VOLUMES(TEST01))) -
ALIAS
/* |
i'll be glad if anyone could help me.
Edited: Please use BBcode when You post some code, that's rather readable, Thanks...Anuj |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
From the VSAM Services manual on EXPORT DISCONNECT:
Quote: |
DISCONNECT
specifies that a user catalog is to be disconnected. The connector entry for the user catalog is deleted from the master catalog. Also, the user catalog's alias entries are deleted from the master catalog. |
I also don't see ALIAS as an option on IMPORT CONNECT. I don't think you can do what you want the way you're trying to do it. |
|
Back to top |
|
|
ahmad
New User
Joined: 18 Oct 2008 Posts: 13 Location: Iran
|
|
|
|
sorry, some mistakes on my previous post occurred, so I amend them on this post. ( I wonder why i can't find any edit post button in this forum )
Robert Sample wrote:
I also don't see ALIAS as an option on IMPORT CONNECT. I don't think you can do what you want the way you're trying to do it.
there is ALIAS parameter in import connect, I can code it and no error response will happen nor true result.
but I did what I wanted by treating UCAT as a simple cluster by using export cluster, delete catalog and then import cluster by coding the ALIAS parameter, & it worked.
yes I can !!! |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
ahmad wrote: |
... ( I wonder why i can't find any edit post button in this forum ) |
See lower right of screen for what you can and cannot do. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I wonder why i can't find any edit post button in this forum |
The site admin has restricted editing posts to moderators and "higher".
The post that you mentioned with typos has been deleted. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
In IMPORT CONNECT command there is ALIAS parameter which will make the previous aliases of exported catalog for imported catalog. but it doesn't work. |
it does not work ... the way You might like,
did You read the manual about the alias parameter of import connect???
it will not create ALIASES,
it' s use is ...
Quote: |
ALIAS
specifies that alias associations for the already connected user catalog are to be retained.
The specification of ALIAS during an IMPORT CONNECT operation is intended for cases in which the volume serial information, or device type, or both, of the user catalog has changed since the DEFINE or previous IMPORT CONNECT operation. Specifying ALIAS results in an operation that is similar to an EXPORT DISCONNECT/IMPORT CONNECT sequence, except that any aliases that are of the user catalog are preserved. |
not related to your wishes |
|
Back to top |
|
|
ahmad
New User
Joined: 18 Oct 2008 Posts: 13 Location: Iran
|
|
|
|
thank you all.
so the point is DISCONNECT in export which delete all aliases;
best way to export and import UCATS with their ALIASES is EXPORT them without DISCONNECT parameter; just like simple clusters. |
|
Back to top |
|
|
|