IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

BPXBATCH SFTP to remote path having spaces in folder name


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Faizanazam

New User


Joined: 06 Apr 2024
Posts: 7
Location: United States

PostPosted: Mon Sep 09, 2024 11:53 pm
Reply with quote

Hello Sir,

I am unable to send file using BPXBATC SFTP to remote folder having spaces in between

For Example -

Unable to Send to folder "New Folder"

But if there is no spaces in folder name then files are going successfully , for example "New_Folder"

Please advise on RP, I have tried giving RP under single quotes and doble quotes both.

REMOTEFILENAME=test.txt;
RP=New Folder/;
EOL=crnl;
IMAGE=ascii;
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1337
Location: Bamberg, Germany

PostPosted: Tue Sep 10, 2024 12:28 am
Reply with quote

Please use the Code button for code/data. It's been told a couple of times.
Back to top
View user's profile Send private message
Faizanazam

New User


Joined: 06 Apr 2024
Posts: 7
Location: United States

PostPosted: Tue Sep 10, 2024 12:58 am
Reply with quote

Hello Sir,

I am unable to send file using BPXBATC SFTP to remote folder having spaces in between

For Example -

Unable to Send to folder "New Folder"

But if there is no spaces in folder name then files are going successfully , for example "New_Folder"

Please advise on RP, I have tried giving RP under single quotes and doble quotes both.

Code:
REMOTEFILENAME=test.txt;
RP=New Folder/;
EOL=crnl;
IMAGE=ascii;
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2594
Location: Silicon Valley

PostPosted: Tue Sep 10, 2024 9:59 am
Reply with quote

I suppose an actual space is not supported in this context.

I have no idea regarding BPXBATCH, but I have seen hex characters represented in URLs, such as 0x20 or   or something like that. I know that this is a pretty big stretch but maybe worth a try.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1337
Location: Bamberg, Germany

PostPosted: Tue Sep 10, 2024 1:28 pm
Reply with quote

Try apostrophe (') for RP, maybe it works. Also you could try to quote the space only.

Code:
RP='New Folder/';
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2594
Location: Silicon Valley

PostPosted: Tue Sep 10, 2024 11:15 pm
Reply with quote

Where can I find documentation for 'rp'?

and can you provide a more complete JCL of what you are trying to do?
Back to top
View user's profile Send private message
Faizanazam

New User


Joined: 06 Apr 2024
Posts: 7
Location: United States

PostPosted: Wed Sep 11, 2024 12:06 am
Reply with quote

Hi All,

Thanks for the response, Combination of apostrophe (') for RP and quote the spaces worked.

Below is the code for reference -

Code:
RP="New' 'Folder"/; 
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
No new posts how to complete the end of a record w... DFSORT/ICETOOL 2
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Remote Unload of CLOB Columns DB2 6
Search our Forums:

Back to Top