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

JCL to list the DASD datasets in seq. file by user id.


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

New User


Joined: 29 Jul 2008
Posts: 2
Location: Los Angeles

PostPosted: Tue Jul 29, 2008 6:42 am
Reply with quote

Hi

I have a requirement to list the names of all the datasets(PS,GDG and VSAM files) in a output sequential file. I want only those datasets where any one of the qualifier in the dataset name is mainframe user id.

If i have standard of 5 qualifers dataset name and if any one of the qualifier is mainframe user id or part of the qualifier is mainframe user id, I would like to see that dataset name in the output.

Please provide a JCL/any other way to do this. Thank you.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue Jul 29, 2008 7:34 am
Reply with quote

Use DCOLLECT
Quote:
DCOLLECT obtains data on:

* Active Data Sets

DCOLLECT provides data about space use and data set attributes and indicators on the selected volumes and storage groups.
* VSAM Data Set Information

DCOLLECT provides specific information relating to VSAM data sets residing on the selected volumes and storage groups.
* Volumes

DCOLLECT provides statistics and information on volumes that are selected for collection.
* Inactive Data

DCOLLECT produces output for DFSMShsm-managed data, (inactive data management), which includes both migrated and backed up data sets.
o Migrated Data Sets: DCOLLECT provides information on space utilization and data set attributes for data sets migrated by DFSMShsm.
o Backed Up Data Sets: DCOLLECT provides information on space utilization and data set attributes for every version of a data set backed up by DFSMShsm.
and hit the output file with SAS or EASYTRIEVE to extract the data you want. Note: you must be authorized before you can run DCOLLECT; talk to your security people.
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 Jul 29, 2008 7:59 am
Reply with quote

Hello Venkat and welcoem to the forums,

Is the plan to specify only one userid when this process is run?

Quote:
if any one of the qualifier is mainframe user id or part of the qualifier is mainframe user id
To clarify - does this say that any dataset name node could be a userid or that a userid might be embedded in any dataset name node?

It may help if you post some example dataset names for 2 or 3 users and the output you want when this process is run.
Back to top
View user's profile Send private message
Venkat Oruganti

New User


Joined: 29 Jul 2008
Posts: 2
Location: Los Angeles

PostPosted: Tue Jul 29, 2008 8:46 am
Reply with quote

Hi I would like to add an example to my post.

I will mention the user ids in my input file like

WIP123
WIP234
WIP345

I want to get all the datasets when one of these ids embedded in the dataset name.

If I have 5 datasets on the DASD like

1)XXXX.WIP123.XXXXX.XXXXX
2)WIP234.XXXXX.XXXXXX.XXXXXX
3)XXXX.XXXX.XXXXX.XXXXX.XXXXX
4)XXXX.XXXXX.XXXXXX.XXXXXX.WIP345
5)XXXXX.XXXXX.WIP123AB.XXXXX.XXXXX

I would like to get the output like

XXXX.WIP123.XXXXX.XXXXX
WIP234.XXXXX.XXXXXX.XXXXXX
XXXX.XXXXX.XXXXXX.XXXXXX.WIP345
XXXXX.XXXXX.WIP123AB.XXXXX.XXXXX

in a sequential file.

Please post some sample JCLs to achieve this in a typical mainframe environment.

Thank you for your help on this
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jul 29, 2008 11:55 am
Reply with quote

Venkat Oruganti

Quote:
Please provide a JCL/any other way to do this. Thank you.


Quote:
Please post some sample JCLs to achieve this in a typical mainframe environment.


please DO NOT ask for code on the forum. This is a help forum, not a 'get it done for free forum'.

Take a look at the code in SYS1.SAMPLIB (IGGCSIRX) which is relatively easy to change to give you exactly what you want.

Documentation for CSI is HERE !
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top