Viewing Ebcidic files


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Viewing Ebcidic files
# 1  
Old 12-17-2008
Viewing Ebcidic files

I am having trouble viewing these files from my unix session. vi comes back with line too long. Also an m_dump with the relevant dml comes back with problems.

How can I view this as a text file? Also is there an easy way to view specific records within. Eg I have a policy id
# 2  
Old 12-17-2008
try:
Code:
dd if=your-ebcdic-file conv=ascii

# 3  
Old 12-17-2008
Right I used that with a | more on the end and now I can view it.

Any ideas how I can save specific records to a file? i.e. I have the output files and picked a few at random now I need to find them in input and compare. To prove the conversions work o.k.

Thanks for the reply btw
# 4  
Old 12-17-2008
i think your file is made up of fixed-length records ?
if so, you can use head -c and tail -c to extract the specific record.
for exsamples:
suppose the length of record is 512. so, if you want retrieve 10th's record.
you can use
head -c 5120 your-file | tail -c 512 .
# 5  
Old 12-17-2008
Thanks for the reply I got it finished.

Many Thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with viewing the Log files

I have a file name as logfiles_tar.tgz. How can I view the contents of the log files present in logfiles_tar.tgz ? Any help would be really appreciated. Thanks (3 Replies)
Discussion started by: bobby1015
3 Replies

2. UNIX for Dummies Questions & Answers

Bourne shell viewing files in directory

Hi, I have a program that get a directory name from the user, then the program should go through one by one of the file, asking the user whether to move it to another folder. I tried to list the time of the file one by one. But it seems like it doesn't work. The code is as follow: check() {... (10 Replies)
Discussion started by: mInGzaiii
10 Replies

3. UNIX for Dummies Questions & Answers

viewing the *.msg files

Is there any way we can view the *.msg files in unix / linux ? Example cat aa.msg Or Do we need to do any decryption ? Kindly provide the solution? (0 Replies)
Discussion started by: kingganesh04
0 Replies

4. UNIX for Dummies Questions & Answers

viewing/information of binary files

Hi all, Is there a way of viewing a binary file through a UNIX session? Or perhaps viewing information of a binary file through a session? thanks (2 Replies)
Discussion started by: ocelot
2 Replies

5. UNIX for Dummies Questions & Answers

Viewing files of another unix server (in a folder)

I think that's what I'm trying to do. This is the problem: I log onto my comp, Comp1. Then, from the terminal, since my web server is on another comp, I type: xrlogin Comp2, so I log on to that computer. I then navigate to my directory by typing: cd /domain/myDir, so I am in my directory, on the... (3 Replies)
Discussion started by: Djaunl
3 Replies

6. UNIX for Dummies Questions & Answers

Viewing files

I have a file (called CORE) that is a dump created by a crashing process. This file, I believe, is in "binary" form, so when I try to use cat, more, or vi on it, it has a bunch of garbage. Is there anything I can use to "read" or view this file just like I might a non-binary file? I am running... (2 Replies)
Discussion started by: dsimpg1
2 Replies

7. UNIX for Dummies Questions & Answers

Viewing Tar files

I have backed up a job ona ait tape from unix. i would like to retrieve the data from that tape from a windows pc. i am aware that there may be software available that will allow windows to recognise .tar files. does anyone know where i can source this software or is there any other options (1 Reply)
Discussion started by: mapping
1 Replies

8. UNIX for Advanced & Expert Users

viewing binary files in ASCII

Hi, How to view binary files in ASCII format.???????????????? Bye (2 Replies)
Discussion started by: manjunath
2 Replies

9. UNIX for Dummies Questions & Answers

Viewing files in a directory?

How do I view files in a directory? (1 Reply)
Discussion started by: Ania
1 Replies

10. UNIX for Dummies Questions & Answers

Problem Viewing Text Files In NT/Samba

I have a problem viewing text files in NT(Samba) with files stored on a Unix Box. The unix box is actually my FTP server where various OS's FTP to it. The text file is ftp'd from IBM to the Unix Box and viewed in NT. The problem is that the return carriage does not register in the text file. I... (1 Reply)
Discussion started by: cwong
1 Replies
Login or Register to Ask a Question