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

Sending file via SFTP to Unix from Mainframe.


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ricardo Moreira

New User


Joined: 20 Apr 2007
Posts: 16
Location: Brasil

PostPosted: Tue Sep 30, 2008 12:25 am
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 30, 2008 3:05 am
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: 16
Location: Brasil

PostPosted: Tue Sep 30, 2008 6:19 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 30, 2008 6:29 pm
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: 16
Location: Brasil

PostPosted: Mon Oct 06, 2008 10:06 pm
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

Moderator Emeritus


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

PostPosted: Tue Oct 07, 2008 12:40 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
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
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top