View previous topic :: View next topic |
Author |
Message |
bauer Intermediate
Joined: 10 Oct 2003 Posts: 315 Topics: 49 Location: Germany
|
Posted: Mon Jan 11, 2021 6:53 am Post subject: Storage consumption of dataset |
|
|
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 |
|
Back to top |
|
|
bauer Intermediate
Joined: 10 Oct 2003 Posts: 315 Topics: 49 Location: Germany
|
Posted: Mon Jan 11, 2021 8:56 am Post subject: |
|
|
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 |
|
Back to top |
|
|
|
|