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
 

 

Utility to get the Space used by a file

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

New User


Joined: 19 Nov 2008
Posts: 90
Location: Spain

PostPosted: Thu Feb 18, 2010 3:15 pm    Post subject: Utility to get the Space used by a file
Reply with quote

Hello. I usually work wiht sorts, cobol programs and DB2 in JCL, but rarely with support jobs. So I was asked to get from a bunch of files, the Record lenght, allocated prymary and secondary space and number of extends. I have the long (+2000) list of files and I won't check for each one the size with 3.4,I, so i was wondering if i can, somehow, do it in a Job and list the results

I know i can use Listcat IKJEFT01/LISTDS with a dataset in order to get this output:

Code:

--RECFM-LRECL-BLKSIZE-DSORG
  FB    1210  27830   PS   
--VOLUMES--               
  MDES11                   


But, is there an utility to get the Space used by a file? I supose there is one, but I can't seem to find the right one

Thanks in advance and I'm sorry if this seems too basic, but well, I haven't worked with those requirements before.

Best Regards

Oliver
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: Thu Feb 18, 2010 3:21 pm    Post subject:
Reply with quote

ISMF will give it to you all.

Where the function is located on your primary / secondary menus is site specific, so maybe a quick chat with your storage people will help
Back to top
View user's profile Send private message
ojdiaz

New User


Joined: 19 Nov 2008
Posts: 90
Location: Spain

PostPosted: Thu Feb 18, 2010 3:27 pm    Post subject:
Reply with quote

Guess I'll do that. I was trying to get the info on my own first.

I'll try to look for info on ISMF commands, since i don't think i had used that before

Thanks a lot

Oliver
Back to top
View user's profile Send private message
ojdiaz

New User


Joined: 19 Nov 2008
Posts: 90
Location: Spain

PostPosted: Thu Feb 18, 2010 3:32 pm    Post subject:
Reply with quote

Sorry for the double post. I just got the the ISMF access and it is restricted. As a developer, in this shop, i don't have access to it icon_cry.gif ... I'll guess I'll keep looking around. Any jobs suggestions would be appreciated
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Feb 18, 2010 4:46 pm    Post subject:
Reply with quote

You can write tiny REXX with LISTDSI.

O.
Back to top
View user's profile Send private message
ojdiaz

New User


Joined: 19 Nov 2008
Posts: 90
Location: Spain

PostPosted: Thu Feb 18, 2010 5:05 pm    Post subject:
Reply with quote

Sadly, Rexx is not an option for me. I don't know anything related with it icon_cry.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Feb 18, 2010 10:11 pm    Post subject:
Reply with quote

Hello,

Quote:
So I was asked to get from a bunch of files, the Record lenght, allocated prymary and secondary space and number of extends.

Quote:
I just got the the ISMF access and it is restricted. As a developer, in this shop, i don't have access to it
If getting this info is something your management wants, they may be willing to give you temporary access or have someone who does have access generate a file containing the data (rather than a piece of paper).
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Fri Feb 19, 2010 9:35 am    Post subject:
Reply with quote

You could also try DSINFO ISPF service, But im not sure if it is better than ISMF.

Here is the link
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ISPZSG60/2.6.3?SHELF=&DT=20070722202444&CASE=

Have a nice day
Back to top
View user's profile Send private message
ojdiaz

New User


Joined: 19 Nov 2008
Posts: 90
Location: Spain

PostPosted: Fri Feb 19, 2010 2:33 pm    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

Quote:
So I was asked to get from a bunch of files, the Record lenght, allocated prymary and secondary space and number of extends.

Quote:
I just got the the ISMF access and it is restricted. As a developer, in this shop, i don't have access to it
If getting this info is something your management wants, they may be willing to give you temporary access or have someone who does have access generate a file containing the data (rather than a piece of paper).


I tried that but it wasn't good. We are Outsourcing consultants and we are not allowed those security allowances. The thing is that for a soon to come data migration, a space study is required and the management here is trying to do some estimations based on the info we have from the previous migration. We are migrating commercial offices on a monthly basis.

Anyways, thanks for the link vasanthz. I'll go there and take a look at it...
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Feb 19, 2010 8:05 pm    Post subject:
Reply with quote

It would be worth to give a try to contact your site-support group - they must be having some SMF reports/tools already to provide what you are looking for.
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: Sat Feb 20, 2010 1:18 pm    Post subject:
Reply with quote

I do recall Frank doing some whizzo stuff with DCOLLECT records and DFSORT to do this task or something very similar.

Take a look at the DFSORT forum stickys and you will be sure to find it as I did yesterday.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Mon Feb 22, 2010 9:44 am    Post subject:
Reply with quote

Here is the complete code which uses the DSINFO idea,

http://www.ibmmainframes.com/viewtopic.php?t=44797&highlight=
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 Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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