View previous topic :: View next topic |
Author |
Message |
yrcreddy Beginner
Joined: 28 Dec 2005 Posts: 27 Topics: 12
|
Posted: Wed Jul 05, 2006 11:06 pm Post subject: Problem with file transfer using FTP |
|
|
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 |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Thu Jul 06, 2006 12:22 am Post subject: |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Jul 06, 2006 1:45 am Post subject: |
|
|
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 |
|
 |
ayush Beginner
Joined: 26 Feb 2004 Posts: 20 Topics: 14
|
Posted: Thu Jul 06, 2006 10:03 pm Post subject: |
|
|
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 |
|
 |
|
|