Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Utility to list Data Set Information

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Auryn

New User


Joined: 11 Jan 2006
Posts: 60
Location: Lower Saxony (DE)

PostPosted: Tue Jul 17, 2018 5:03 pm    Post subject: Utility to list Data Set Information
Reply with quote

Hi there,

maybe there are better categories in this forum i.e. »CLIST & REXX« or »TSO/ISPF« to place my question.
But well, I post it here in this category:


In ISPF 3.2 (or 3.4 with line command »I«) you can check the attributes and properties of a dataset.
Code:
                             Data Set Information                     
Command ===>                                                           
                                                                       
Data Set Name  . . . : SYS1.PROCLIB                                   
                                                                       
General Data                          Current Allocation               
 Volume serial . . . : LPSYSO          Allocated cylinders : 10       
 Device type . . . . : 3390            Allocated extents . : 1         
 Organization  . . . : PO              Maximum dir. blocks : 100       
 Record format . . . : FB                                             
 Record length . . . : 80                                             
 Block size  . . . . : 27920          Current Utilization             
 1st extent cylinders: 10              Used cylinders  . . : 6         
 Secondary cylinders : 0               Used extents  . . . : 1         
                                       Used dir. blocks  . : 29       
                                       Number of members . : 178       
                                                                       
                                      Dates                           
                                       Creation date . . . : 2004/08/13
                                       Referenced date . . : 2018/07/17
                                       Expiration date . . : ***None***


'Cause we processing a number of datasets (sequential and PDS(-E)) and member via batch jobs we'd like to analyse these information (including that ones about the directory blocks) in advance.
Does anybody of you know a tool or tso command to retrieve the information the mentioned ISPF panel provides of several datasets in a list via a batch job?

If there is no command or system utility that can be used in a jcl directly maybe there is a module that retrieves these information and can be integrated in a COBOL main module?

Thank you for your assistance.

Auryn
Back to top
View user's profile Send private message

steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 667
Location: The Universe

PostPosted: Tue Jul 17, 2018 5:35 pm    Post subject:
Reply with quote

Look at the utilities on the CBT "tape." I'm pretty certain you will find something of use. By the rules of the web site I cannot insert the address of the CBT tape page here, but Google is your friend.

Mass reading of PDS directories fell by the way side with the advent of effective data security tools like RACF, Top Secret and ACF2. None of them provided a tool to permit an unauthorized program to pre test if the program can open a data set without getting an S913 ABEND.

Your idea about a tool that would integrate with Cobol is good, but how the tool would present data set information to the Cobol program presents difficulties I do not think anyone was interested in developing. I'm not aware of any such tool.
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 365
Location: Maryland

PostPosted: Tue Jul 17, 2018 5:50 pm    Post subject:
Reply with quote

IBM provided the interface routine to perform ISPF 3.2 functions via CALL. But it requires full ISPF environment to be established before any call to this interface; this is headache.
DSINFO—data set information dialog service

Another, more simple way of doing this is - REXXTOOLS by Open Software Technologies
Dataset Information Functions
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jul 17, 2018 5:52 pm    Post subject:
Reply with quote

Should be easy enough to do this in batch ISPF using DSINFO

I might even have some code somewhere too
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 227
Location: Denmark

PostPosted: Tue Jul 17, 2018 10:27 pm    Post subject:
Reply with quote

I would consider writing a small REXX pgm around the REXX LISTDSI function.
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 470
Location: London

PostPosted: Tue Aug 28, 2018 11:45 pm    Post subject:
Reply with quote

Probaly a bit late now but FDREPORT, Catalog Recovery Plus, T-Rex and probably Naviquest to name a few can all provide this info in Batch
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1618
Location: Oregon

PostPosted: Thu Aug 30, 2018 4:30 am    Post subject:
Reply with quote

IDCAMS with DCOLLECT to get D type records.

And then feed the DCOLLECT file to a MXG program or to ISMF(NaviQuest) reporter
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 Calling and updating SAS Macro variab... Yogesh Jaiswal All Other Mainframe Topics 2 Thu Oct 11, 2018 12:37 pm
No new posts how to use RDZ for converting cobol c... balajiChid CICS 1 Tue Oct 09, 2018 8:40 pm
No new posts Extra data in overlay field speermb DFSORT/ICETOOL 2 Thu Sep 13, 2018 6:04 pm
No new posts How to summarize data by grouping on ... santhosh5983 DFSORT/ICETOOL 6 Tue Sep 04, 2018 9:07 am
No new posts CLOB Column data to External File usi... lalitmehta12 DB2 9 Tue Aug 21, 2018 7:22 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us