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

Allocated space calculation from DCOLLECT using Assembler


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Jim Stout

New User


Joined: 11 May 2013
Posts: 4
Location: USA

PostPosted: Sun Apr 17, 2022 8:35 pm
Reply with quote

Good day everyone!

I'm working on a project to determine the amount of allocated DASD space using a DCOLLECT as input to an assembler program. I'm using DCDALLSP from the D records and am comparing the result obtained by using the DCVALLOC from the V records. I would expect them to be equal but so far, the numbers are very far apart. I'm hoping that someone has some advice for getting accurate space allocation information from a DCOLLECT. Thanks in advance!
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 1527

PostPosted: Mon Apr 18, 2022 12:45 am
Reply with quote

Examples of code, and input/output data, please.

Do not forget to enclose all samples into Code tags.
Back to top
View user's profile Send private message
Joerg.Findeisen

Active Member


Joined: 15 Aug 2015
Posts: 808
Location: Bamberg, Germany

PostPosted: Wed Apr 20, 2022 12:20 pm
Reply with quote

Basically when comparing DCVALLOC with all DSNs DCDALLSP on a volume, you should get the size of the VTOC. Consider EAV bits where needed. Also some SORT product might be the better option for processing DCOLLECT output.
Back to top
View user's profile Send private message
Jim Stout

New User


Joined: 11 May 2013
Posts: 4
Location: USA

PostPosted: Wed Apr 20, 2022 9:29 pm
Reply with quote

Thanks for the responses! It turns out that the DCOLLECT I was using was "incomplete" which caused the discrepancy between the V record allocation and the D record allocation values. I've sampled a dozen other DCOLLECTs and the difference is minor (< 1%). The goal of this exercise was to see how much data is being compressed vs. data that is not compressed.
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Getting SOC4 while calling a Cobol DB... PL/I & Assembler 4
No new posts Passing parm from JCL to Assembler, b... PL/I & Assembler 2
No new posts Assembler class assignment: stuck on ... PL/I & Assembler 12
No new posts Assembler: Set Program Mask for decim... PL/I & Assembler 4
No new posts Extracting Compression Statistics fro... PL/I & Assembler 2
Search our Forums:

Back to Top