View previous topic :: View next topic
|
Author |
Message |
ttcf15
New User
Joined: 11 Aug 2009 Posts: 6 Location: China
|
|
|
|
I need to ftp files from Mainframe to Unix,I wrote that in a batch job.But got a problem.
the batch job is:
Code: |
//USERIDC JOB 'USERIDC',NOTIFY=USERID,CLASS=A,
// MSGCLASS=X,MSGLEVEL=(1,1)
//FTP EXEC PGM=FTP PARM='/-D (EXIT'
//SYSFTPD DD DISP=SHR,DSN=USERID.FTP.DATA(FTPSDATA)
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//INPUT DD *
HOST IP
USERID
PASSWORD
SChinese (notype
put 'USERID.TEST.BIG' BIGTEST.txt
quit
//* |
All commands run successfully,but when run to "put 'USERID.TEST.BIG' BIGTEST.txt"
it will automatic to add a command "SITE FIXrecfm 80 LRECL=80 RECFM=FB BLKSIZE=27920" to Unix.
log is :
Code: |
EZA1460I Command:
EZA1736I put 'USERID.TEST.BIG' BIGTEST.txt
EZA1701I >>> SITE FIXrecfm 80 LRECL=80 RECFM=FB BLKSIZE=27920
500 'SITE FIXRECFM 80 LRECL=80 RECFM=FB BLKSIZE=27920': command not understood.
EZA1701I >>> PORT 172,16,8,12,9,249
200 PORT command successful.
EZA1701I >>> STOR BIGTEST.txt
150 Opening data connection for BIGTEST.txt. |
any one knows about that??
how can I get rid of the automatic command?? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
I don't have access to my manuals at the moment, but I believe adding
will do the trick -- locsite toggles sending the site data from the local machine, IIRC. If not, I should be able to get to the manuals in an hour or two. |
|
Back to top |
|
|
ttcf15
New User
Joined: 11 Aug 2009 Posts: 6 Location: China
|
|
|
|
it didn't work..
Mainframe need a option for locsite
but I can't find a fit option for it.
I pick the "FILEtype=SEQ"option but it still doesn't..
Code: |
EZA1460I Command:
EZA1736I LOCSIte FILEtype=SEQ
EZA1460I Command:
EZA1736I put 'USERID.TEST.DATA' BIGTEST
EZA1701I >>> SITE FIXrecfm 80 LRECL=80 RECFM=FB BLKSIZE=27920
500 'SITE FIXRECFM 80 LRECL=80 RECFM=FB BLKSIZE=27920': command not understood.
EZA1701I >>> PORT 172,16,8,12,12,184
200 PORT command successful.
|
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
is the command -- I finally got to the manuals. |
|
Back to top |
|
|
ttcf15
New User
Joined: 11 Aug 2009 Posts: 6 Location: China
|
|
|
|
Yeeeees!
It work !
Thank you. Thank you.
Code: |
EZA1460I Command:
EZA1736I SENDSite
EZA1611I Usage of SITE command with PUT is OFF
|
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Glad to hear it's working! |
|
Back to top |
|
|
|