Retrieve PHYRECS/TRK without LISTCAT



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

Retrieve PHYRECS/TRK without LISTCAT

Postby sensuixel » Mon Apr 18, 2011 9:01 pm

Hi everyone,

I'm trying to retrieve the space occupied by some VSAM Files in TRACKS.
I could easily retrieve it by running and parsing the result of a LISTCAT.

But I was wondering if it's possible using another method.

- I tried using and parsing DCOLLECT in PL/I but the result aren't exactly the same
==> I retrieve HARBA and DCACISZ but i can't get the equivalent of PHYRECS/TRK, so that my result lacks of precision.
I assumed that the number of Block per Track is equal to round(56 664 / Blksize) but unfortunately it's not always true.

- I tried using IGGCSI via HLASM, and I get the same result

Is there any other way to get the actual number of Block per track

Thanks
sensuixel
 
Posts: 58
Joined: Mon Feb 21, 2011 8:55 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Retrieve PHYRECS/TRK without LISTCAT

Postby enrico-sorichetti » Mon Apr 18, 2011 9:08 pm

I assumed that the number of Block per Track is equal to round(56 664 / Blksize) but unfortunately it's not always true.
You assumed wrongly :D
IGGCSI is a <programmatic> interface to the catalog content so it will not give more than a plain LISTCAT
since I do not feel retyping the whole shebang... see this thread
http://ibmmainframes.com/about35906.html
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Retrieve PHYRECS/TRK without LISTCAT

Postby sensuixel » Mon Apr 18, 2011 9:17 pm

enrico-sorichetti wrote:
I assumed that the number of Block per Track is equal to round(56 664 / Blksize) but unfortunately it's not always true.
You assumed wrongly :D
IGGCSI is a <programmatic> interface to the catalog content so it will not give more than a plain LISTCAT
since I do not feel retyping the whole shebang... see this thread
http://ibmmainframes.com/about35906.html


Thanks for the quick reply ;)
sensuixel
 
Posts: 58
Joined: Mon Feb 21, 2011 8:55 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Retrieve PHYRECS/TRK without LISTCAT

Postby steve-myers » Mon Apr 18, 2011 9:41 pm

The correct way, regardless of access method, to get the number of physical records / track is to use the Assembler TRKCALC macro, which is described here.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Retrieve PHYRECS/TRK without LISTCAT

Postby sensuixel » Mon Apr 18, 2011 11:48 pm

steve-myers wrote:The correct way, regardless of access method, to get the number of physical records / track is to use the Assembler TRKCALC macro, which is described here.


Thank you really much, I did'nt know this macro, which seems unforgivable given what it can do. :lol:
sensuixel
 
Posts: 58
Joined: Mon Feb 21, 2011 8:55 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Retrieve PHYRECS/TRK without LISTCAT

Postby sensuixel » Tue Apr 19, 2011 2:42 pm

I used the list from http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/am3u1001/B.1.2

I retrieve BLKSIZE from DCOLLECT and compare it with the list to get the number of records per track then
i can calculate the total of tracks on par with the LISCAT.

Now I investigate the TRKCALC macro, thanks you .
sensuixel
 
Posts: 58
Joined: Mon Feb 21, 2011 8:55 pm
Has thanked: 0 time
Been thanked: 0 time


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post