Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

IMPORT CONNECT issue

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: IMPORT CONNECT issue
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: 8120
Location: East Dubuque, Illinois, USA

PostPosted: Sat Dec 20, 2008 7:28 pm    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Dec 23, 2008 11:25 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10276
Location: italy

PostPosted: Tue Dec 23, 2008 12:40 pm    Post subject: Reply to: IMPORT CONNECT issue
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts Connect:Direct - RC=000000FF MSG=SVTM... R.Manivannan All Other Mainframe Topics 3 Fri Apr 21, 2017 1:30 am
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us