zowe › zos-ftp › view › spool-file-by-id
View the contents of a spool file from a z/OS job on spool/JES queues. The command does not pre-validate the JOBID or spool ID. The command presents errors verbatim from the z/OSMF Jobs REST endpoints.
Usage
zowe zos-ftp view spool-file-by-id <jobid> <spoolfileid> [options]
Positional Arguments
jobid
(string)- The z/OS JOBID of the job containing the spool file you want to view. No pre-validation of the JOBID is performed.
spoolfileid
(number)- The spool file ID number for the spool file to view. Use the "imperative zos-jobs list spool-files-by-jobid" command to obtain spool ID numbers.No pre-validation of the ID is performed.
Required Options
--host
|-H
(string)- The hostname or IP address of the z/OS server to connect to.
--port
|-P
(number)The port of the z/OS FTP server.
Default value: 21
--user
|-u
(string)- Username for authentication on z/OS
--password
|-p
|--pass
|--pw
(string)- Password to authenticate to FTP.
Options
--secure-ftp
(boolean)Set to true for both control and data connection encryption, 'control' for control connection encryption only, or 'implicit' for implicitly encrypted control connection (this mode is deprecated in modern times, but usually uses port 990). Note: Unfortunately, this plugin's functionality only works with FTP and FTPS, not 'SFTP' which is FTP over SSH.
Default value: true
--connection-timeout
|--ct
(number)How long (in milliseconds) to wait for the control connection to be established.
Default value: 10000
TLS / Secure Connection options
--reject-unauthorized
|--ru
(boolean)- Reject self-signed certificates. Only specify this if you are connecting to a secure FTP instance.
--server-name
|--sn
(string)- Server name for the SNI (Server Name Indication) TLS extension. Only specify if you are connecting securely
Profile Options
--zftp-profile
|--zftp-p
(string)- The name of a (zftp) profile to load for this command execution.
Examples
View the spool file with ID 4 for the job with job ID JOB00123:
zowe zos-ftp view spool-file-by-id JOB00123 4