OnDemand Users Group

Support Forums => CMOD for z/OS Server => Topic started by: satya_srungarapu on November 24, 2025, 09:22:44 AM

Title: Rest Api to get the size of AFPout on Zos
Post by: satya_srungarapu on November 24, 2025, 09:22:44 AM
Using the REST API interface on z/os (POST /cmod-rest/v1/hits/{folderName}), is it possible to retrieve the size of the requested AFPout file? Alternatively, is there any method available to obtain the AFPout file size through the REST API hosted on z/os?"
Title: Re: Rest Api to get the size of AFPout on Zos
Post by: Ed_Arnold on November 25, 2025, 04:45:21 PM
The size will be returned when the document is retrieved. Specifically, via the "Content-Length" header as shown in the example here:

https://www.ibm.com/docs/en/cmofm/10.5.0?topic=document-retrieve

Document sizes are not shown in the search results.
Title: Re: Rest Api to get the size of AFPout on Zos
Post by: satya_srungarapu on November 25, 2025, 10:55:34 PM
Arnold, Thank you very much for your resposne. For Example  "Content-Length: 5553" means 5553 Bytes. Correct me if Iam wrong