View previous topic :: View next topic
|
Author |
Message |
mrar_160
New User
Joined: 14 Sep 2005 Posts: 48
|
|
|
|
Hi guys..
I already create JCL FTP to ftp dataset from mainframe to PC..
But, i stuck to specify the directory on my PC.i got error ""C:\MEPS" contains an invalid character". How can i specify it?
Below is the error after i compile my JCL..
EZA1460I Command:
EZA1736I LCD FTP
EZA2081I Local directory name set to partitioned data set PEP1001.FTP
EZA1460I Command:
EZA1736I CD C:\MEPS
EZA1701I >>> CWD C:\MEPS
501 A qualifier in "C:\MEPS" contains an invalid character
EZA1460I Command:
EZA1736I PUT //DD:SYSUT1
EZA1685W Invalid local file identifier
EZA1460I Command:
EZA1736I QUIT
EZA1701I >>> QUIT
221 Quit command received. Goodbye.
TQ.. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I'm not an expert, but from what a quick Google search found, the >cd command only supports a change to a directory name, not to a drive. You should investigate the FTP protocol standards further, but my gut instinct is that a change to another drive is probably prohibited. |
|
Back to top |
|
|
SHAILESH OZA
New User
Joined: 10 Jun 2005 Posts: 21 Location: Mumbai
|
|
|
|
I think you have to write like this
CD /MAPS
Genarally we are transfering from PC to mainframe dataset
CD /path
PWD
LOCSITE LRECL= XXX , BLKSIZE=XXXX PRIMARY=XX SECONDARY=XX
GET filename.txt (from the path folder)
QUIT |
|
Back to top |
|
|
Imran
New User
Joined: 26 Dec 2005 Posts: 12 Location: Pune
|
|
|
|
Hi Shailesh
If u want it on ur machine then i can suggest ftp through MS-DOS.
1. Go to run.
2. Type cmd. enter
3. DOS Prompt opens up.
4. Type \cd.enter
5. It will ask for RACFID.
6. TYPE ID AND ENTER. It will ask for password.
7. Then type this. GET 'FILENAME' Receiving.file.name
8. Press enter.
If u face any difficulty then mail me .
all the best.
Regards
Imran
mzshaik@kanbay.com |
|
Back to top |
|
|
mrar_160
New User
Joined: 14 Sep 2005 Posts: 48
|
|
|
|
Hi guys..
Here is my simple FTP JCL..
My problem is, the file not transfered to my PC directory, it transfered to dataset in user.ftp..
How can make the file ftp to my PC directory??
Code: |
//FTPJOB JOB 090000,CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID,
// REGION=3072K
//*
//*
//FTP EXEC PGM=FTP
//OUTPUT DD SYSOUT=*
//SYSUT1 DD DSN=USER.FTP(FTPGET1),DISP=SHR
//SYSIN DD *
// DD DSN=USER.FTP(INFO),DISP=SHR *MY USER ID AND PASSWORD
// DD *
LCD FTP
CD \MAP *My PC directory
PUT //DD:SYSUT1 'MAP\TEST.TXT'
QUIT
|
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Your job worked OK at my end with a couple of minor tweaks:
Code: |
//*
//FTP EXEC PGM=FTP
//OUTPUT DD SYSOUT=*
//SYSUT1 DD DSN=USER.FTP(FTPGET1),DISP=SHR
//SYSIN DD *
// DD DSN=USER.FTP(INFO),DISP=SHR *MY USER ID AND PASSWORD
// DD *
LCD FTP <= Not Really Necessary
CD \MAP
PUT //DD:SYSUT1 TEST.TXT
QUIT
|
which FTP'd the contents of 'USER.FTP(FTPGET1)' to \MAP\TEST.TXT. |
|
Back to top |
|
|
mrar_160
New User
Joined: 14 Sep 2005 Posts: 48
|
|
|
|
Thank for reply super k..
Quote: |
which FTP'd the contents of 'USER.FTP(FTPGET1)' to \MAP\TEST.TXT. |
May i know, this diretory \MAP\TEST.TXT is on your PC or on your mainframe?
When i submitted the JCL i got this msg..
Quote: |
EZA1460I Command:
EZA1736I CD \MAP
EZA1701I >>> CWD \MAP
501 A qualifier in "\MAP" begins with an invalid character
EZA1460I Command:
EZA1736I PUT //DD:SYSUT1 TEXT.TXT
EZA1685W Invalid local file identifier
EZA1460I Command:
EZA1736I QUIT
EZA1701I >>> QUIT
221 Quit command received. Goodbye.
|
Mm..how to solve i? |
|
Back to top |
|
|
SHAILESH OZA
New User
Joined: 10 Jun 2005 Posts: 21 Location: Mumbai
|
|
|
|
Hi That file /map/testfile.txt should not be from your normal pc. if you are using IBMFTP utility thorough JCL for converting notepad.txt to DATASET or vicevers then
There should be link between mainframe and the server on which the file is residing. otherwise if you want to convert txt file from your pc to mainframe dataset then use OPTION 6(COMMAND) in ISPF menu. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
mrar_160 wrote: |
May i know, this diretory \MAP\TEST.TXT is on your PC or on your mainframe?
|
On the PC. |
|
Back to top |
|
|
mrar_160
New User
Joined: 14 Sep 2005 Posts: 48
|
|
|
|
Superk,
in the USER.FTP(INFO),DISP=SHR, the IP address you put your PC's IP or host IP?
My one, i put host IP.. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You put the target FTP server's (the PC) IP address. |
|
Back to top |
|
|
mrar_160
New User
Joined: 14 Sep 2005 Posts: 48
|
|
|
|
Thank superk..
I will try..i have tried before, but i think i got problem with my port..
I think port is not open for FTP from host to PC.. |
|
Back to top |
|
|
bidhucsc
New User
Joined: 24 Dec 2007 Posts: 10 Location: India
|
|
|
|
For me the port is open. But its saying Access denied to the TXT file that I am writing to. Here is the JCL o/p.
Code: |
EZA1736I FTP 20.198.0.174
EZY2640I Using dd:SYSFTPD=SYS1.TCPPARMS(FTPDATA) for local site configuration pa
EZA1450I IBM FTP CS V1R9
EZA1466I FTP: using TCPIP
EZA1554I Connecting to: 20.198.0.174 port: 21.
220 Microsoft FTP Service
EZA1459I NAME (20.198.0.174:IND4726):
EZA1701I >>> USER asiapac\bbhusan
331 Password required for asiapac\bbhusan.
EZA1789I PASSWORD:
EZA1701I >>> PASS
230 User asiapac\bbhusan logged in.
EZA1460I Command:
EZA1736I sendsite
EZA1611I Usage of SITE command with PUT is OFF
EZA1460I Command:
EZA1736I BINARY
EZA1701I >>> TYPE I
200 Type set to I.
EZA1460I Command:
EZA1736I PUT 'IND4726.INPUT1' TEST.TXT
EZA1701I >>> PORT 20,15,82,10,15,7
200 PORT command successful.
EZA1701I >>> STOR TEST.TXT
550 TEST.TXT: Access is denied.
EZA1460I Command:
EZA1736I QUIT generated by unexpected end of file
EZA1701I >>> QUIT
221 |
Here is my JCL
Code: |
//IND4726X JOB (T-0M1D-T104),'FTP',
// CLASS=A,NOTIFY=IND4726,
// MSGCLASS=T,TIME=,
// USER=IND4726,PASSWORD=
/*JOBPARM ROOM=RRRR,S=SYSF
//*====================================================
//* SEND TERSED DUMP TO ASG
//*====================================================
//SEND EXEC PGM=FTP,PARM='20.198.0.174'
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//SYSTCPD DD DISP=SHR,DSN=SYS1.TCPPARMS(TCPDATA)
//SYSFTPD DD DISP=SHR,DSN=SYS1.TCPPARMS(FTPDATA)
//INPUT DD *
user
password
sendsite
BINARY
PUT 'IND4726.INPUT1' test.txt |
Can anyvody help ?[/code] |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Any reason you're responding to a post almost 4 years old instead of starting your own thread?
You need to contact the person responsible for the server you are wanting to put your data on and have them give you access to write files. It may be that your id was set up to only write to a certain directory already, in which case you need a CD command in your FTP commands. In either case, you must contact someone at your site about this -- we cannot change write permissions on the server for you. |
|
Back to top |
|
|
bidhucsc
New User
Joined: 24 Dec 2007 Posts: 10 Location: India
|
|
|
|
I thought this is the rule. If I start a new thread, the moderator will say search the threads. Since I think this thread was not complete I thought of using it.
BTW, I found the solution. In MS FTP services running in my PC, the Write access was unchecked. Now I am able to do the FTP from Mainframe to PC.
Thanks for your help. |
|
Back to top |
|
|
mrar_160
New User
Joined: 14 Sep 2005 Posts: 48
|
|
|
|
I got an email notification about this tread..
Unfortunetly, i'm not mainframe programmer yet.. .. Go Back to server..
Tq a lot everbody and IBMMAINFRAMES moderator.. |
|
Back to top |
|
|
|