IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

proble while ftping file from Mainframe to Unix


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ttcf15

New User


Joined: 11 Aug 2009
Posts: 6
Location: China

PostPosted: Tue Aug 11, 2009 4:42 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Aug 11, 2009 4:45 pm
Reply with quote

I don't have access to my manuals at the moment, but I believe adding
Code:
quote locsite
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
View user's profile Send private message
ttcf15

New User


Joined: 11 Aug 2009
Posts: 6
Location: China

PostPosted: Wed Aug 12, 2009 6:39 am
Reply with quote

it didn't work.. icon_sad.gif
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.. icon_mad.gif
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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Aug 12, 2009 6:58 am
Reply with quote

Code:
quote sendsite
is the command -- I finally got to the manuals.
Back to top
View user's profile Send private message
ttcf15

New User


Joined: 11 Aug 2009
Posts: 6
Location: China

PostPosted: Wed Aug 12, 2009 7:08 am
Reply with quote

Yeeeees!
It work ! icon_lol.gif icon_lol.gif icon_lol.gif icon_lol.gif
Thank you. Thank you.
Code:

EZA1460I Command:                             
EZA1736I  SENDSite                           
EZA1611I Usage of SITE command with PUT is OFF
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Aug 12, 2009 7:13 am
Reply with quote

Glad to hear it's working!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
Search our Forums:

Back to Top