View previous topic :: View next topic
|
Author |
Message |
szpall Warnings : 1 New User
Joined: 16 Jan 2006 Posts: 12
|
|
|
|
Hi,all
I find IDCAMS' command DEFINE not support wildcard *, anyone can tell me a fast way to catalog all dataset I wanted. Thanks
DEFINE NONVSAM (NAME(ABC.*) -
DEVICETYPES(3390 -
) -
VOLUMES(ABCDEF -
) -
) CATALOG('UCAT')
Job output:
IDCAMS SYSTEM SERVICES
DEFINE NONVSAM (NAME(ABC.*) -
IDC3203I ITEM 'ABC.*' DOES NOT ADHERE TO RESTRICTIONS
DEVICETYPES(3390 -
) -
VOLUMES(ABCDEF -
) -
) CATALOG('UCAT')
IDC3202I ABOVE TEXT BYPASSED UNTIL NEXT COMMAND. CONDITION CODE IS 12
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12 |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
1) REXX would do it quickly enough
2) Why the need for UCAT ? - Is this a special activity ? |
|
Back to top |
|
|
szpall Warnings : 1 New User
Joined: 16 Jan 2006 Posts: 12
|
|
|
|
expat
thanks for replay so quickly:)
Can you give me more detail info about REXX
actually,I want creat a MCAT for another system,and I got a volumn with system datasets SYS1.*, then I attached this volumn to my testing environment,created a UCAT,then I want a faster way to catalog this dataset to my UCAT. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
You can read in a dataset with the list of datasets that need to be entered into the UCAT and then build and execute the IDCAMS statements in one go. |
|
Back to top |
|
|
szpall Warnings : 1 New User
Joined: 16 Jan 2006 Posts: 12
|
|
|
|
There many other dataset need to be cataloged,nearly thousand of dataset,it's low efficient to execute IDCAMS statements one by one |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Well write the IDCAMS statements to a dataset and execute that later. |
|
Back to top |
|
|
szpall Warnings : 1 New User
Joined: 16 Jan 2006 Posts: 12
|
|
|
|
I can't figure out your step,you means use VSAM utility to generate IDCAMS statement then execute one by one? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
Quote: |
and I got a volumn with system datasets SYS1.* |
are You trying to clone an existing system ???
if the system has been decently setup a simple
define nonvsam
and a systems symbols change in order to point to the new volumes at IPL TIME
will take just a few minutes
the only datasets that will have to be managed by hand are the VSAM ( paging and all that )
and implementing this approach will save a lots of time at the next clone up
even if You could go for a shared master catalog
edited to get rid of misleading info |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
szpall wrote: |
I can't figure out your step,you means use VSAM utility to generate IDCAMS statement then execute one by one? |
You asked me to explain about a REXX solution, and that is what I did.
Within REXX you can generate and execute IDCAMS statements.
Read the base file with all dataset names, process each one to
a) Generate IDCAMS statements
b) Execute IDCAMS statements |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
Back to top |
|
|
szpall Warnings : 1 New User
Joined: 16 Jan 2006 Posts: 12
|
|
|
|
[quote="enrico-sorichetti"][quote]are You trying to clone an existing system ???quote]
I'm trying to creat a mini system,I copied system datasets to a volumn from a online working system, then I attach this volumn to another testing environment,fisrt step I created UCAT,and I need catalog all dataset on this volumn to my UCAT |
|
Back to top |
|
|
szpall Warnings : 1 New User
Joined: 16 Jan 2006 Posts: 12
|
|
|
|
expat wrote: |
szpall wrote: |
I can't figure out your step,you means use VSAM utility to generate IDCAMS statement then execute one by one? |
You asked me to explain about a REXX solution, and that is what I did.
Within REXX you can generate and execute IDCAMS statements.
Read the base file with all dataset names, process each one to
a) Generate IDCAMS statements
b) Execute IDCAMS statements |
thanks again,I will try |
|
Back to top |
|
|
szpall Warnings : 1 New User
Joined: 16 Jan 2006 Posts: 12
|
|
|
|
I find CBT395.XMI from your site,it seems helpful,many thanks |
|
Back to top |
|
|
nevilh
Active User
Joined: 01 Sep 2006 Posts: 262
|
|
|
|
Quote: |
repro mergecat to build he new catalog |
This will change ownership of the datasets and can lead to problems later.
IBM have a utility MCNVTCAT that is designed for this purpose |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
Quote: |
This will change ownership of the datasets and can lead to problems later. |
elucubrate a bit please, if You can |
|
Back to top |
|
|
nevilh
Active User
Joined: 01 Sep 2006 Posts: 262
|
|
|
|
If you repro mergecat from catalog1 to catalog2. Catalog2 is now the owner of the datasets. Entries are deleted from CATALOG1. Repro mergecat is used for moving or splitting catalogs not for copying catalogs |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
my bad, I had forgotten about deletion
will edit my previous post to get rid of the erroneous info |
|
Back to top |
|
|
szpall Warnings : 1 New User
Joined: 16 Jan 2006 Posts: 12
|
|
|
|
I heard another way to do this,use ADRDSSU copy this dataset to another volumn, then cataloged at copying period |
|
Back to top |
|
|
|