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

Changing port number while using BPXBATCH in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
wasubi

New User


Joined: 20 Aug 2007
Posts: 4
Location: PA

PostPosted: Wed Jul 09, 2008 11:45 pm
Reply with quote

Hello,
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.

Basically my JCL looks something like this
Code:
 //STEP20 EXEC PGM=BPXBATCH,                               
 //PARM='sh sftp -oport=<port number> userid@ipaddress'     
 //SYSTSPRT DD SYSOUT=*                                     
 //OUTPUT   DD SYSOUT=*                                     
 //INPUT    DD DSN=FTP Parameters dataset,DISP=SHR             


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
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 09, 2008 11:58 pm
Reply with quote

Put a space between the // and the PARM; PARM is being taken as the label of the statement and there's no operation field after it.
Back to top
View user's profile Send private message
wasubi

New User


Joined: 20 Aug 2007
Posts: 4
Location: PA

PostPosted: Thu Jul 10, 2008 9:51 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
No new posts changing defaults in db2 admin - Unlo... DB2 0
Search our Forums:

Back to Top