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

while ftp'ing we get junk chars in unix box


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nithyaroslin

New User


Joined: 29 Jan 2008
Posts: 14
Location: Chennai

PostPosted: Mon Mar 02, 2009 1:59 pm
Reply with quote

Hi,

We ftp a mainframe file to unix server. Instead of [ and ] we are getting junk characters in unix server
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Mar 02, 2009 2:50 pm
Reply with quote

Hi,

How do you conclude they are junk?
Back to top
View user's profile Send private message
nithyaroslin

New User


Joined: 29 Jan 2008
Posts: 14
Location: Chennai

PostPosted: Mon Mar 02, 2009 3:14 pm
Reply with quote

Hi,

It was not in readable format. But the same chars are subtituted for [ and ] respectively.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Mar 02, 2009 5:21 pm
Reply with quote

Most Unix systems require ASCII data. You could use the Unix System Services (USS) editor to view the ASCII file directly, or use USS iconv command to convert back to EBCDIC to view, or download in binary to a PC and use a text editor to view the data ... perhaps if you can clarify what you're looking for?
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: Mon Mar 02, 2009 8:48 pm
Reply with quote

The square brackets are not standard EBCDIC characters. Your file may be defined using one codeset while another codeset is being used to download the data; this could cause the square brackets to be incorrectly translated.

Go to the IBM web site and search on EBCDIC square bracket -- there's over 500 hits and will tell you everything you want to know about code pages and brackets.
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: Thu Apr 02, 2009 9:14 am
Reply with quote

Hello,

You first need to ensure that there are only text characters in the file to be sent from the mainframe (no packed-decimal or binary signed zoned-decimal numerics).

There are multiple examples of ftp jcl in the forum. This is one:
ibmmainframes.com/viewtopic.php?t=337&highlight=ftp
Back to top
View user's profile Send private message
nithyaroslin

New User


Joined: 29 Jan 2008
Posts: 14
Location: Chennai

PostPosted: Fri Apr 03, 2009 12:02 pm
Reply with quote

Hi,

Thank you... We were not able to send [ or ] as this was not standard characters. We were not able to keyin these characters as well in our datasets... So we changed this to { and }.

Regards,
Nithya
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
No new posts Identify unused (junk) REXX scripts TSO/ISPF 30
No new posts Batch JCL to Copy from Unix Directory... JCL & VSAM 5
No new posts Trigger mainframe job , when file pla... All Other Mainframe Topics 2
Search our Forums:

Back to Top