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
 
while ftp'ing we get junk chars in unix box

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: while ftp'ing we get junk chars in unix box
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

Senior Member


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

PostPosted: Mon Mar 02, 2009 2:50 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Mon Mar 02, 2009 5:21 pm    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Mon Mar 02, 2009 8:48 pm    Post subject:
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

Site Director


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

PostPosted: Thu Apr 02, 2009 9:14 am    Post subject:
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:
http://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    Post subject:
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    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 replacing junk with hyphen Nitin32 DFSORT/ICETOOL 10 Fri Jun 02, 2017 7:47 pm
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
This topic is locked: you cannot edit posts or make replies. Alphanumeric to Numeric move on UNIX mistah kurtz COBOL Programming 16 Wed Jul 27, 2016 8:47 pm

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