Re: How to download files with a "#" in file name


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 -----
From: "Ajit Sahu via lists.openmainframeproject.org" <ajit.rsahu=icloud.com@...>
Sent by: zowe-user@...
To: zowe-user@...
Cc:
Subject: [EXTERNAL] Re: [zowe-user] How to download files with a "#" in file name
Date: Tue, Jul 27, 2021 12:48 AM
 
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 . On Jul 26, 2021, at 5:07 AM, Frans Beyl <frans.beyl@...> wrote:  The command is the same ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
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 .
 
 
 
 
On Jul 26, 2021, at 5:07 AM, Frans Beyl <frans.beyl@...> wrote:
 


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@...>:
Could you please share ,how you did it and what command you used 
 
Ajit 
On Jul 25, 2021, at 11:13 PM, Frans Beyl <frans.beyl@...> wrote:
 

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@...>
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. 

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

 

 

 

 

 

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


Join zowe-user@lists.openmainframeproject.org to automatically receive all group messages.