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
 
Sending file via SFTP to Unix from Mainframe.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Ricardo Moreira

New User


Joined: 20 Apr 2007
Posts: 15
Location: Brasil

PostPosted: Tue Sep 30, 2008 12:25 am    Post subject: Sending file via SFTP to Unix from Mainframe.
Reply with quote

Hello,

I'm trying to send a file from Mainframe to Unix. Unfortunartully i got this massage:
EZA1701I >>> SITE FIXrecfm 110 LRECL=110 RECFM=FB BLKSIZE=27940

Did anybody already have this problem ?

icon_eek.gif icon_eek.gif icon_eek.gif icon_eek.gif
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8166
Location: East Dubuque, Illinois, USA

PostPosted: Tue Sep 30, 2008 3:05 am    Post subject:
Reply with quote

The message you posted is a normal mainframe FTP message; it is not a problem. The SITE command provides the other side with information about the format of the data and is set to send on the mainframe by default. Since you're sending to a Unix site, you don't need to send this data. SENDSITE toggles the sending of the data, so issue it before your GET/PUT command.
Back to top
View user's profile Send private message
Ricardo Moreira

New User


Joined: 20 Apr 2007
Posts: 15
Location: Brasil

PostPosted: Tue Sep 30, 2008 6:19 pm    Post subject:
Reply with quote

Guys, I saw the same error in another system from someone else here, so i think this is not the main problem. I've created this post because when i open the file that it was transmited to Unix it's all messed up. I mean, i sent a real data, and what i receive in Unix is follow:
ñðñðñø@@@@@@@@@ñÃã@ðõòðñ@@@Ä 1bXSŒ
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8166
Location: East Dubuque, Illinois, USA

PostPosted: Tue Sep 30, 2008 6:29 pm    Post subject:
Reply with quote

Ricardo: the data you show is in EBCDIC; most Unix systems require ASCII data. However, your problem is compounded because it appears you've got a seven-byte packed decimal (COBOL COMP-3) field at the end of the data. Your file must be converted to not include any packed decimal or binary (COBOL COMP) fields before doing the FTP or you will have a lot of difficulty with the data file since the text fields will require translation while the packed decimal fields cannot be translated -- a bit of a conundrum.

And again the SITE command is totally irrelevant to your problem; you may get an invalid command message from the Unix side but the data can be transferred anyway.
Back to top
View user's profile Send private message
Ricardo Moreira

New User


Joined: 20 Apr 2007
Posts: 15
Location: Brasil

PostPosted: Mon Oct 06, 2008 10:06 pm    Post subject:
Reply with quote

I got news about what really happened. Thes users who receive the files in Unix did a mistake with the files transmited that's why the file was all messed.

But, thank your effort.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Oct 07, 2008 12:40 am    Post subject: Reply to: Sending file via SFTP to Unix from Mainframe.
Reply with quote

Good to hear it is resolved - thank you for telling us the resolution icon_smile.gif

d
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

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