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 

Problem with file transfer using FTP

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


Joined: 28 Dec 2005
Posts: 27
Topics: 12

PostPosted: Wed Jul 05, 2006 11:06 pm    Post subject: Problem with file transfer using FTP Reply with quote

Hi,

i am trying to down load a PS into notepad by using the following JCL.
Code:

//STEP003 EXEC PGM=FTP
//INPUT   DD  *
IP ADDRESS
USER NAME
PASSWORD
SENDS
CD \TEMP
GET 'MAINFRAMES DATASET' NOTEPAD.TXT
QUIT
//OUTPUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//*

after running the above JCL ,the text file is not able to create.it's again creating one more mainframe dataset(TE288.ABC.TXT) with username as a qualifier.
please let me know how to down load mainframes dataset into a notepad.

please see the spool data: Removed by Admin due to sensitive data
_________________
Thanks,
Ramachandra Reddy
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu Jul 06, 2006 12:22 am    Post subject: Reply with quote

yrcreddy,

Please follow the steps:

1.Go to TSO 6 option.
2.Go to the Actions on the Menu bar , then select 'Receive File from Host'
3.You will get a dialog ,In the Text box for Host File name give the dataset name say 'TE288.ABC.PS'
4.In the text box for PC FILE name: give 'TE288ABCPS.TXT'
5.In the drop list field for Transfer Type select 'TEXT'.
6.Click on Browse where u want the destination to be say Desktop .
7.Give file name as TE288.ABC.PS.TXT
8.Click on Receive and u will get the Notepad Text File by name TE288ABCPS.TXT on the desktop.

Hope it helps.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Jul 06, 2006 1:45 am    Post subject: Reply with quote

you are trying to run commands on the mainframe as if you are running on the PC. If you want to start this on the PC, use a bat file there. If you want to start it from the mainframe, then you need an FTP server on your PC and your target will be the PC (so cd \temp may work if you are exposing your whole hard drive in the server which is a very bad idea for obvious reasons).
Back to top
View user's profile Send private message Visit poster's website
ayush
Beginner


Joined: 26 Feb 2004
Posts: 20
Topics: 14

PostPosted: Thu Jul 06, 2006 10:03 pm    Post subject: Reply with quote

You should be trying to use PUT instead of GET, as you are trying to put a file from local (mainframe server) to a remote (windows server), hence if you run this from a JCL, you've to use PUT "MF Dataset" "notepadfile_name.txt"

Or may be I didn't undersand your question.
Thanks
Ayush
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
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