MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Storage consumption of dataset

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 315
Topics: 49
Location: Germany

PostPosted: Mon Jan 11, 2021 6:53 am    Post subject: Storage consumption of dataset Reply with quote

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
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 315
Topics: 49
Location: Germany

PostPosted: Mon Jan 11, 2021 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group