IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

IMPORT CONNECT issue


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ahmad

New User


Joined: 18 Oct 2008
Posts: 13
Location: Iran

PostPosted: Sat Dec 20, 2008 6:48 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Dec 20, 2008 7:28 pm
Reply with quote

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
View user's profile Send private message
ahmad

New User


Joined: 18 Oct 2008
Posts: 13
Location: Iran

PostPosted: Tue Dec 23, 2008 10:10 am
Reply with quote

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 !!! icon_wink.gif
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Tue Dec 23, 2008 10:17 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Dec 23, 2008 11:25 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 23, 2008 12:40 pm
Reply with quote

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
View user's profile Send private message
ahmad

New User


Joined: 18 Oct 2008
Posts: 13
Location: Iran

PostPosted: Tue Dec 23, 2008 2:52 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Connect Direct 6.3 for Z/OS All Other Mainframe Topics 20
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Facing ABM3 issue! CICS 3
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
Search our Forums:

Back to Top