Using the Zowe CLI zos-files upload file-to-data-set generates an error message if the member is very large. The command ends with an error message although the upload works fine.
C:\Users\user01>zowe zos-files upload file-to-data-set "C:\temp\ZOWE.AZWE002.UO02059" "SFTW.ZOWE.DOWNLOAD.PTFS(UO02059)" --binary
file_to_upload: 1
success: 0
error: 1
skipped: 0
success: false
from: C:\temp\ZOWE.AZWE002.UO02059
to: SFTW.ZOWE.DOWNLOAD.PTFS(UO02059)
error:
message: z/OSMF REST API
Error: Rest API failure with HTTP(S) status 500
category: 4
rc: 12
reason: 0
message: LMMSTATS error
details: - ISRZ002 Invalid statistics value - Current number of records must be a positive number from 0 to 65535.
Release : 2.0
This message is returned from z/OS List Member Statistics facility.
Do a 3.4 in ISPF and browse a partitioned data set. One of the fields displayed is Size:
BROWSE SFTW.ZOWE.DOWNLOAD.PTFS
Command ===>
Name Prompt Size Created
i________ UO02058 *Browsed >65535 2023/01/13
**End**
https://www.ibm.com/docs/en/zos/2.4.0?topic=statistics-member-list-display-panel-fields
Size
Current number of lines. The largest number this field can display is 65 535. If extended statistics are generated for a member and the current number of lines value in the extended statistics exceeds 65535, >65535 is displayed on the member list. Use the Info command from the enhanced member list to display the extended line count values. The maximum value of extended line counts is 2147483647.
The Info display:
Data Set Name . . . : SFTW.ZOWE.DOWNLOAD.PTFS
General Data Directory flag byte
Member name . . . . . . . . : UO02058 Bit 0 : 0 SCLM
Concatenation number . . . . : 1 Bit 1 : 0
Version . Modification . . . : 01.00 Bit 2 : 1 Ext Stats
Create Date . . . . . . . . : 2023/01/13 Bit 3 : 0
Modification Date . . . . . : 2023/01/13 Bit 4 : 0
Modification Time . . . . . : 14:53:24 Bit 5 : 0
Userid that Created/Modified : USER01 Bit 6 : 0
Bit 7 : 0
Line counts : max values are 65535 Extended line counts
Current : 65535 (>) Current : 4786247
Initial : 65535 (>) Initial : 4786247
Modified : 0 Modified : 0
Appears to be a difference in the z/OSMF server.
There are no error messages with version 28.0:
zowe zosmf check status
The user user01 successfully connected to z/OSMF on 'xxxxxxxx.xxxxx.xxxxxxxx.xxx'.
zosmf_port: 1443
zosmf_saf_realm: SAFRealm
zos_version: 04.28.00
zosmf_full_version: 28.0
api_version: 1
However, the message is produced with 27.0 -
zos_version: 04.27.00
zosmf_full_version: 27.0