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: 7996
Location: Bellevue, IA

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: 7996
Location: Bellevue, IA

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: 7996
Location: Bellevue, IA

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
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 6 Thu Mar 23, 2017 5:12 am
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm


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