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
 

 

Catalog thousand of datasets to specified UCAT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Catalog thousand of datasets to specified UCAT
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 16, 2008 12:07 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 16, 2008 12:32 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 16, 2008 12:54 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Dec 16, 2008 1:18 pm    Post subject: Reply to: Catalog thousand of datasets to specified UCAT
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 16, 2008 1:25 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Dec 16, 2008 1:33 pm    Post subject: Reply to: Catalog thousand of datasets to specified UCAT
Reply with quote

follow on...
search www.cbttape.org 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    Post subject: Re: Reply to: Catalog thousand of datasets to specified UCAT
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    Post subject:
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    Post subject: Re: Reply to: Catalog thousand of datasets to specified UCAT
Reply with quote

enrico-sorichetti wrote:
follow on...
search www.cbttape.org 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: 258

PostPosted: Tue Dec 16, 2008 5:24 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Dec 16, 2008 5:39 pm    Post subject: Reply to: Catalog thousand of datasets to specified UCAT
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: 258

PostPosted: Tue Dec 16, 2008 5:55 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Dec 16, 2008 6:02 pm    Post subject: Reply to: Catalog thousand of datasets to specified UCAT
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    Post subject:
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    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 DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts Command UNIQUE CONSTRAINT on any tabl... rohanthengal DB2 2 Thu Aug 18, 2016 3:48 pm
No new posts Finding unreferenced datasets without... Alan Playford JCL & VSAM 5 Tue Jul 12, 2016 9:07 pm
No new posts BDW in VB datasets harisukumaran JCL & VSAM 5 Sat May 28, 2016 9:46 am


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