Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Changing port number while using BPXBATCH in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Changing port number while using BPXBATCH in JCL
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: 8195
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jul 09, 2008 11:58 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 5 Sat Aug 19, 2017 2:33 pm
No new posts Profile changed to NUMBER ON STD (fro... Martylin TSO/ISPF 1 Thu Aug 03, 2017 9:14 am
No new posts BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 4 Tue Jul 25, 2017 12:12 am
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us