$ zowe zos-jobs download output <jobid>
Unexpected Command Error:
Please review the message and stack below.
...
Message:
_a.trim is not a function
Stack:
TypeError: _a.trim is not a function
Component: Zowe CLI
To find configurations file, type
zowe zos-jobs download output <jobid> --show-inputs-only
into your terminal. This shows a list of locations for your configurations in order of precedence.
Edit the configurations at those locations, encoding shows to be set as a number,
encoding: 1047
but it needs to be set as a string.
encoding: "1047"
You can either change this value to a string by wrapping the encoding value in quotes or by removing the encoding property entirely from your active profile.
This issue is rarely seen and a fix has been implemented that will be available for the next Enterprise Support for Zowe release and is already available as the latest changes for CLI versions 2 and 3 available on npm.