How to download files with a "#" in file name
Ajit Sahu
Thank you Very much Joe . Will go through the IBM API doc and get back .
While I am able to get into https://<host>:port , I am yet to get into the whole member GET . I will try it and see what happens . Thanks,Ajit |
|
Joe Winchester
Hi Ahit,
The Zowe CLI is backed by z/OSMF REST APIs, and it might be good to try and issue a REST API command directly to see if where the error is being thrown.
The REST API documentation is at https://www.ibm.com/docs/en/zos/2.2.0?topic=interface-retrieve-contents-zos-data-set-member for the z/OSMF REST API used to retrieve a PDS member contents, and an example API would look something like https://<host>:<port>/zosmf/restfiles/ds/HLQ.PDS(MEMBER). I tend to use postman which is a great tool to test REST API requests and responses, although there are other great REST API explorers such as restlet client.
Are you able to construct a raw REST API request to get the contents ?
If you need to reach out to the Zowe CLI squad members themselves a good idea might be to use the slack workspace https://openmainframeproeject.slack.org/ channel #zowe-cli. if this is your first time to sign up to the workspace us the link https://slack.openmainframeproject.org/.
Best regards,
Joe Winchester
Zowe.org Leadership Committee Member - IBM Senior Technical Staff Member - Open Mainframe Project Ambassador
Phone: 44-7749-965423
Twitter: @JoeWinchester LinkedIn: joewinchester
E-mail: winchest@... ----- Original message ----- Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU |
|
Ajit Sahu
Thank you .I tried ,but still not working for me .tried using the below as well as specifying base path and/or user/Pwd ..still same error .
toggle quoted message
Show quoted text
On Jul 26, 2021, at 5:07 AM, Frans Beyl <frans.beyl@...> wrote:
|
|
Frans Beyl
The command is the same as you tried but I don't go by API mediation layer, I use zosmf directly with url and port.. zowe zos-files download all-members "datasetname" -H “url zosmf” -P “port zosmf”
node --version v14.15.4 npm --version 6.14.10 zowe --version 6.31.1 Frans Op ma 26 jul. 2021 om 08:22 schreef Ajit Sahu via lists.openmainframeproject.org <ajit.rsahu=icloud.com@...>:
|
|
Ajit Sahu
Could you please share ,how you did it and what command you used
toggle quoted message
Show quoted text
Ajit On Jul 25, 2021, at 11:13 PM, Frans Beyl <frans.beyl@...> wrote:
|
|
Frans Beyl
But then I don't use ml, you might try without it. Op za 24 jul. 2021 om 19:53 schreef Frans Beyl <frans.beyl@...>
|
|
Frans Beyl
Strange, I just tested and download is fine for all members also one starting with # Op vr 23 jul. 2021 om 18:08 schreef ajit.rsahu via lists.openmainframeproject.org <ajit.rsahu=icloud.com@...> Thank you Very much Dan for looking into this . I tried your command as well. But its failing with same error. |
|
Ajit Sahu
Thank you Very much Dan for looking into this . I tried your command as well. But its failing with same error.
My Command : zowe zos-files download all-members "DatasetName" -b -d "DirectoryLocation" Error Message : z/OSMF REST API Error:
Rest API failure with HTTP(S) status 404
category: 1
rc: 4
reason: 3
message: DatasetName(
Error Details:
HTTP(S) error status "404" received.
Review request details (resource, base path, credentials, payload) and ensure correctness.
Protocol: https
Host: host
Port: port
Base Path: basepath
Resource: /zosmf/restfiles/ds/DatasetName(member1)
Request: GET
Headers: [{"X-IBM-Data-Type":"binary"},{"Accept-Encoding":"gzip"},{"X-IBM-Response-Timeout":"500"},{"X-CSRF-ZOSMF-HEADER":true}]
Payload: undefined Thanks, Ajit |
|
Daniel Kelosky
Hi Ajit -
This works in a quick test: `zowe files download ds "ibmuser.work.jcl(#file)"` Can you log your issue here? https://github.com/zowe/zowe-cli/issues Can you paste there the command you ran and the command error output along with the version of zowe CLI you are using (zowe --version)? Thanks, Dan This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it. |
|
Ajit Sahu
Hi Team ,
I am trying to download some files using zowe CLI . However, my command failing as some of my file names either start with "#" or contain "#" . Is there any way to download files which has a "#" in the file name . Thanks,Ajit |
|