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

Catalog thousand of datasets to specified UCAT


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

New User


Joined: 16 Jan 2006
Posts: 12

PostPosted: Tue Dec 16, 2008 12:03 pm
Reply with quote

Hi,all icon_smile.gif

I find IDCAMS' command DEFINE not support wildcard *, anyone can tell me a fast way to catalog all dataset I wanted. Thanks icon_biggrin.gif


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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 16, 2008 12:07 pm
Reply with quote

1) REXX would do it quickly enough

2) Why the need for UCAT ? - Is this a special activity ?
Back to top
View user's profile Send private message
szpall
Warnings : 1

New User


Joined: 16 Jan 2006
Posts: 12

PostPosted: Tue Dec 16, 2008 12:28 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 16, 2008 12:32 pm
Reply with quote

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
View user's profile Send private message
szpall
Warnings : 1

New User


Joined: 16 Jan 2006
Posts: 12

PostPosted: Tue Dec 16, 2008 12:44 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 16, 2008 12:54 pm
Reply with quote

Well write the IDCAMS statements to a dataset and execute that later.
Back to top
View user's profile Send private message
szpall
Warnings : 1

New User


Joined: 16 Jan 2006
Posts: 12

PostPosted: Tue Dec 16, 2008 1:11 pm
Reply with quote

I can't figure out your step,you means use VSAM utility to generate IDCAMS statement then execute one by one?
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 16, 2008 1:18 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 16, 2008 1:25 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 16, 2008 1:33 pm
Reply with quote

follow on...
search Use [URL] BBCode for External Links CBTF1.TXT with the word CATALOG
ad You will find pointers to useful tools
Back to top
View user's profile Send private message
szpall
Warnings : 1

New User


Joined: 16 Jan 2006
Posts: 12

PostPosted: Tue Dec 16, 2008 1:41 pm
Reply with quote

[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
View user's profile Send private message
szpall
Warnings : 1

New User


Joined: 16 Jan 2006
Posts: 12

PostPosted: Tue Dec 16, 2008 1:42 pm
Reply with quote

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 icon_biggrin.gif
Back to top
View user's profile Send private message
szpall
Warnings : 1

New User


Joined: 16 Jan 2006
Posts: 12

PostPosted: Tue Dec 16, 2008 1:58 pm
Reply with quote

enrico-sorichetti wrote:
follow on...
search Use [URL] BBCode for External Links CBTF1.TXT with the word CATALOG
ad You will find pointers to useful tools



I find CBT395.XMI from your site,it seems helpful,many thanks
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue Dec 16, 2008 5:24 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 16, 2008 5:39 pm
Reply with quote

Quote:
This will change ownership of the datasets and can lead to problems later.


elucubrate a bit please, if You can
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue Dec 16, 2008 5:55 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 16, 2008 6:02 pm
Reply with quote

my bad, I had forgotten about deletion icon_redface.gif

will edit my previous post to get rid of the erroneous info
Back to top
View user's profile Send private message
szpall
Warnings : 1

New User


Joined: 16 Jan 2006
Posts: 12

PostPosted: Wed Dec 17, 2008 7:31 am
Reply with quote

I heard another way to do this,use ADRDSSU copy this dataset to another volumn, then cataloged at copying period
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 Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts DASD - non SMS - volser change - VSAM... JCL & VSAM 2
No new posts PL/I, VB Datasets and the RDW PL/I & Assembler 4
No new posts how to get list of all VSAM/non-VSAM ... JCL & VSAM 13
No new posts define 1 DCB parms for multiple outpu... JCL & VSAM 9
Search our Forums:

Back to Top