MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP TRANSMIT FROM PC TO z/OS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
NorthernDancer
Beginner


Joined: 01 May 2007
Posts: 44
Topics: 22
Location: DOWNTOWN BUFFALO, NY

PostPosted: Wed Dec 02, 2015 5:39 pm    Post subject: FTP TRANSMIT FROM PC TO z/OS Reply with quote

Is anyone quite familiar with Sending a file from a PC up to a Mainframe z/OS system ?? I'm quite OK with the reverse direction using GET 'mainframe dsname' xxxxxxxx.csv for example. I know it is PUT but cannot remember the order exactly. But it could be PUT xxxxxxxx.csv 'mainframe dsname' like that. But here's the other need. What are the parameters to specify the DCB to be created ? For example, I have a User EXCEL sheet that is 3000 bytes. So I want to make sure that RECFM=FB,LRECL=3000,BLKSIZE=27000 gets applied. And then how do you tell it how much SPACE in TRKS to use ?? THX
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Dec 03, 2015 10:59 am    Post subject: Reply with quote

NorthernDancer,

Try this at command prompt

Code:

FTP YOUR-Mainframe-IP-Address
USERID
PASSWORD
QUOTE SITE TR PRIMARY=225 SECONDARY=150 LRECL=3000 RECFM=FB BLKSIZE=27000
PUT C:\northern.dancer.xls
QUIT
 


Here is the list of commands that you can use

http://www-01.ibm.com/support/docview.wss?uid=nas8N1016959
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Dec 03, 2015 1:17 pm    Post subject: Reply with quote

NorthernDancer,

Updated the original post with tested FTP commands and list of parameters that can used.

Here is a rexx exec to find out the IP address of your mainframe

Code:

/* REXX */                                                   
PARSE VALUE SOCKET('INITIALIZE', 'TEST') WITH RC . . SERVER 
PARSE VALUE SOCKET('GETHOSTID') WITH RC IP                   
SAY IP                                                       
EXIT                                                         

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group