Re: [U2] Reading a Unix file from another machine. PROBLEM SOLVED

2010-11-11 Thread Roy Beard
Henderson ;-) -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of fft2...@aol.com Sent: Wednesday, November 10, 2010 9:01 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Reading a Unix file from another machine

Re: [U2] Reading a Unix file from another machine.

2010-11-10 Thread FFT2001
If you read 56 bits you will be reading 8 bytes in 7-bit mode. But you will also be reading 7 bytes in 8-bit mode. So by reading 7 Ascii characters at a time out of your stream/file, you should be able to re-chunk them into 8 characters by prepending a bit 0 on the front of each 7-bit byte.

Re: [U2] Reading a Unix file from another machine.

2010-11-10 Thread George Gallen
...@aol.com Sent: Wednesday, November 10, 2010 8:37 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Reading a Unix file from another machine. If you read 56 bits you will be reading 8 bytes in 7-bit mode. But you will also be reading 7 bytes in 8-bit mode. So by reading 7 Ascii

Re: [U2] Reading a Unix file from another machine.

2010-11-10 Thread FFT2001
In a message dated 11/10/2010 4:55:04 AM Pacific Standard Time, ggal...@wyanokegroup.com writes: This sounds like a job for a quick perl routine. Read the file in byte by byte, and AND it with 127, then write it out byte by byte to a new file. George No George this will not work.

Re: [U2] Reading a Unix file from another machine.

2010-11-10 Thread George Gallen
...@listserver.u2ug.org] On Behalf Of fft2...@aol.com Sent: Wednesday, November 10, 2010 9:01 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Reading a Unix file from another machine. In a message dated 11/10/2010 4:55:04 AM Pacific Standard Time, ggal...@wyanokegroup.com writes

Re: [U2] Reading a Unix file from another machine.

2010-11-10 Thread FFT2001
In a message dated 11/10/2010 5:03:26 AM Pacific Standard Time, ggal...@wyanokegroup.com writes: I understand the 7 bit method your talking about. But if you can see the values in Vt100 term type, it's only stripping off the 8th bit? vs pushing the 8th bit to the front of the next byte?

Re: [U2] Reading a Unix file from another machine.

2010-11-10 Thread FFT2001
In a message dated 11/10/2010 5:03:26 AM Pacific Standard Time, ggal...@wyanokegroup.com writes: I understand the 7 bit method your talking about. But if you can see the values in Vt100 term type, it's only stripping off the 8th bit? vs pushing the 8th bit to the front of the next byte?

Re: [U2] Reading a Unix file from another machine.

2010-11-10 Thread Drew William Henderson
;-) -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of fft2...@aol.com Sent: Wednesday, November 10, 2010 9:01 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Reading a Unix file from another machine. In a message dated 11/10

[U2] Reading a Unix file from another machine.

2010-11-09 Thread Roy Beard
Hi all, I am trying to read a Unix file from and old aix machine. The people who sent it will not bend in how they sent it. What I got was in binary format so I used 'od' to convert it to ascii. When I tried to cat the file before trying to READSEQ records it looked like gibberish! I

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Dan Goble
a Unix file from another machine. Hi all, I am trying to read a Unix file from and old aix machine. The people who sent it will not bend in how they sent it. What I got was in binary format so I used 'od' to convert it to ascii. When I tried to cat the file before trying to READSEQ records

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread George Gallen
Sent: Tuesday, November 09, 2010 5:05 PM To: 'U2 Users List' Subject: [U2] Reading a Unix file from another machine. Hi all, I am trying to read a Unix file from and old aix machine. The people who sent it will not bend in how they sent it. What I got was in binary format so I used

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Roy Beard
: Tuesday, November 09, 2010 5:10 PM To: U2 Users List Subject: Re: [U2] Reading a Unix file from another machine. was the original file in EBCDIC? otherwise why convert it to ascii? Is it a directory structure written out as a binary file? Will cpio read the file? -Original Message

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Roy Beard
: Tuesday, November 09, 2010 5:09 PM To: 'u2-users@listserver.u2ug.org' Subject: Re: [U2] Reading a Unix file from another machine. Try using at the unix command line String filename newfilenamer This will strip out all control characters - Original Message - From: Roy Beard [mailto:r

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Roy Beard
another machine. Sorry ... The command is strings Not string. Typing from a blackberry - Original Message - From: Roy Beard [mailto:r...@cfl.rr.com] Sent: Tuesday, November 09, 2010 05:23 PM To: 'U2 Users List' u2-users@listserver.u2ug.org Subject: Re: [U2] Reading a Unix file from

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Roy Beard
, November 09, 2010 5:09 PM To: 'u2-users@listserver.u2ug.org' Subject: Re: [U2] Reading a Unix file from another machine. Try using at the unix command line String filename newfilenamer This will strip out all control characters - Original Message - From: Roy Beard [mailto:r

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Dan Goble
Sorry ... The command is strings Not string. Typing from a blackberry - Original Message - From: Roy Beard [mailto:r...@cfl.rr.com] Sent: Tuesday, November 09, 2010 05:23 PM To: 'U2 Users List' u2-users@listserver.u2ug.org Subject: Re: [U2] Reading a Unix file from another machine

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Clive Hills
. # -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dan Goble Sent: Tuesday, November 09, 2010 5:09 PM To: 'u2-users@listserver.u2ug.org' Subject: Re: [U2] Reading a Unix file from another machine. Try using at the unix

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Baakkonen, Rodney A (Rod) 46K
...@listserver.u2ug.org] On Behalf Of Roy Beard Sent: Tuesday, November 09, 2010 4:05 PM To: 'U2 Users List' Subject: [U2] Reading a Unix file from another machine. Hi all, I am trying to read a Unix file from and old aix machine. The people who sent it will not bend in how they sent it. What I got was in binary

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Roy Beard
...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Baakkonen, Rodney A (Rod) 46K Sent: Tuesday, November 09, 2010 5:38 PM To: U2 Users List Subject: Re: [U2] Reading a Unix file from another machine. Is AIX ebcdic? I use dd to convert files from ebcdic to ascii

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Baakkonen, Rodney A (Rod) 46K
Try /usr/bin/strings -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Roy Beard Sent: Tuesday, November 09, 2010 4:23 PM To: 'U2 Users List' Subject: Re: [U2] Reading a Unix file from another machine. NO joy! # cd

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Gregor Scott
...@listserver.u2ug.org] On Behalf Of Roy Beard Sent: Wednesday, 10 November 2010 9:27 AM To: 'U2 Users List' Subject: Re: [U2] Reading a Unix file from another machine. # cat master | more °³üªü·¶ üªüªü ü ü ü ü ü ü ü ü M-^M° üªü·¶ üªüªü ü ü ü ü ü ü ü ü M-^M°µüªü·¶ üªü ü ü ü ü ü ü ü M-^M°¶üªü·¶ üªüªü ü ü ü ü ü ü

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Wols Lists
...@listserver.u2ug.org] On Behalf Of Roy Beard Sent: Tuesday, November 09, 2010 5:05 PM To: 'U2 Users List' Subject: [U2] Reading a Unix file from another machine. Hi all, I am trying to read a Unix file from and old aix machine. The people who sent it will not bend in how they sent it. What I

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Adrian Overs
Hi Roy, What you need to do is to add a line feed LF char(10) to your carriage returns char(13). This can either be done at unix level by cat file | tr '\l' '\l\015' file2 (15 being the octal equivalent of 13) or programatically by CHANGE(RECORD,CHAR(13),CHAR(10):CHAR(13),-1) I don't have an AIX

Re: [U2] Reading a Unix file from another machine.

2010-11-09 Thread Rex Gozar
If the binary file it truly 7 bit, try dos2unix -c 7bit master newfile, then see if you can cat newfile. rex On Tue, Nov 9, 2010 at 7:28 PM, Adrian Overs u2u...@gmail.com wrote: Hi Roy, What you need to do is to add a line feed LF char(10) to your carriage returns char(13). This can either