Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

proble while ftping file from Mainframe to Unix

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: proble while ftping file from Mainframe to Unix
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: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Tue Aug 11, 2009 4:45 pm    Post subject:
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    Post subject:
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: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Wed Aug 12, 2009 6:58 am    Post subject:
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    Post subject:
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: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Wed Aug 12, 2009 7:13 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us