I am setting up a SFTP that is going to china. Apparently within their infinite wisdom they choosed to use the defualt port for SFTP which is 22 for regular FTP.....why? buddha only knows...
I have a rexx exec that wrote the parameters dynamically and it worked until they decided to tell me at the last minute that port 22 was already occupied. The Rexx EXEC called the BPXBATCH sh sfp-b <batch file> <id>@<ip address> to access the unix side of MVS and take do the SFTP. But I can not use -b and -oport in the same command line because it thinks -oport= is the batch file. So I am stuck trying to find another way through JCL to accomplish this task.
I searched google and I am not coming up with no answers. All the examples of using BPXBATCH is with the -b and that is not going to help me. I was wondering if anyone can help with any suggestions or ideas I can look at.
I am getting an error stating the following
5 IEFC662I INVALID LABEL
5 IEFC605I UNIDENTIFIED OPERATION FIELD
which line 5 is //PARM='sh sftp -oport=<port number> userid@ipaddress'
I am not sure if I am doing anything wrong or it is not possible what I am trying to do.
I am sorry but I am extremely frustrated since the receiving end likes to wait till the last minute to inform me of any changes I have to make on our side. So I apologize to anyone if my post offends anyone
I am able to change the port the way I have posted above but now I can't figure out how to transfer any files. I am able to login using that code but that is all I can do. Is there anyway I can imput my parameters from a dataset or instream. Any help would be grateful