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

Utility to get the Space used by a file


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

New User


Joined: 19 Nov 2008
Posts: 98
Location: Spain

PostPosted: Thu Feb 18, 2010 3:15 pm
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: 8797
Location: Welsh Wales

PostPosted: Thu Feb 18, 2010 3:21 pm
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: 98
Location: Spain

PostPosted: Thu Feb 18, 2010 3:27 pm
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: 98
Location: Spain

PostPosted: Thu Feb 18, 2010 3:32 pm
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: 2358
Location: Israel

PostPosted: Thu Feb 18, 2010 4:46 pm
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: 98
Location: Spain

PostPosted: Thu Feb 18, 2010 5:05 pm
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

Moderator Emeritus


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

PostPosted: Thu Feb 18, 2010 10:11 pm
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: 1742
Location: Tirupur, India

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

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

Here is the link
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: 98
Location: Spain

PostPosted: Fri Feb 19, 2010 2:33 pm
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

Superior Member


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

PostPosted: Fri Feb 19, 2010 8:05 pm
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: 8797
Location: Welsh Wales

PostPosted: Sat Feb 20, 2010 1:18 pm
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: 1742
Location: Tirupur, India

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

Here is the complete code which uses the DSINFO idea,

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top