Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8218
Location: Dubuque, Iowa, 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: 8218
Location: Dubuque, Iowa, 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: 8218
Location: Dubuque, Iowa, 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
No new posts COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts How to change the logon screen info o... sakthikumarT TSO/ISPF 4 Fri Dec 29, 2017 6:44 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us