Storage consumption of dataset
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Application Programming

#1: Storage consumption of dataset Author: bauerLocation: Germany PostPosted: Mon Jan 11, 2021 6:53 am
    —
Dear all,

I like to retrieve the storage consumption (and some other information) of a dataset using PL/1 (or COBOL).

The ISPF function DSINFO of course is no problem to use - but the disadvantage is, that migrated datasets are recalled.


Something like this (issue command in ISPF)

Code:

hsend list dsn(/) both term


or this

Code:

//STEP1     EXEC PGM=IKJEFT01,REGION=512K                   
//SYSTSPRT  DD   SYSOUT=*                                   
//SYSTSIN    DD   *                                         
 HSEND W LIST DSN(MY.DATA.SET) BOTH -
              ODS(HLQ.OUTPUT.NAME)                         
/*                                                           


helps. Storage consumption is retrieved without recalling the dataset.

But how to do something like this from PL/1 (or COBOL) ?

Any hints please?

Kind regards,
bauer

#2:  Author: bauerLocation: Germany PostPosted: Mon Jan 11, 2021 8:56 am
    —
Dear all,

topic can be closed.

Solution:

Use TSOLNK (alias of IKJEFTSR) to issue the HSEND command from above.
Read the result from the file hlq.output,name from above.

This works embedded to PL/1.

Kind regards,
bauer



MVSFORUMS.com -> Application Programming


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group