Error Message :
N/A
A GET_FILESYSTEM script function with “File System Value” PATH_SPACE_USED always returns 0 Bytes when used on z/OS files.
Example: On version 10, UC.MSL file shows 1679702 Byte used.
On version 11.2, it shows 0 Bytes used.
This is shown with the following script. Tthe dataset name for he “UC.MSL” needs to be adjusted to the environment:
:s &ret# = GET_FILESYSTEM(ITA#S901, "UC4SCJ.UC410.UC.MSL", PATH_SPACE_USED, BYTES):s &errnr# = SYS_LAST_ERR_NR():if ISNUMERIC(&ret#)eq "Y": set &ret# = FORMAT(&ret#):endif:print "UC4SCJ.UC4112.MSL: &ret# Byte":if &errnr# NE "0": s &ERRINS# = SYS_LAST_ERR_INS(): s &MESSAGE# = GET_MSG_TXT(&ERRNR#, &ERRINS#): print "&ERRNR#,&ERRINS#,&MESSAGE#":endif
The reports prints the following line:
U0020408 UC4SCJ.UC4112.MSL: 0 Byte
It should be:
U0020408 UC4SCJ.UC4112.MSL: 1679702 Byte