Unix file conversin using 'dd' command

Bontha, Narasimhareddy narasimhareddy.bontha@digital.com
Mon, 1 Sep 2003 09:29:18 +0530


Hi Vidyasagar,

Use the following command, which serves your purpose.

dd if=<input file> of=<output file> ibs=200 obs=200 cbs=200 conv=block

where `input file' is of less than 80 characters record terminated by a NEW LINE. (LINE SEQUENTIAL FILE)
           `output file' is of 200 characters fixed record length file (DATA SEQUENTIAL).

Note : In UNIX `new line' character will be treated as a separate character in UNIX character set, since UNIX follows byte stream. Hence the LINE SEQUENTIAL FILE should be converted the DATA SEQUENTIAL before giving it to power house. 

Let me know if you have any difficulty.

Regards
Narasimhareddy Bontha

-----Original Message-----
From: Goparaju, Vidyasagar [mailto:VGoparaju@tradepointsystems.com]
Sent: Friday, August 29, 2003 10:29 PM
To: Powerh-L (E-mail)
Subject: Unix file conversin using 'dd' command


I have an ASCII file with 6 records in it and the record terminator is a
NEWLINE character. All the records are less than 80 bytes.

I have to read this file using Powerhouse dictionary record which is 200
bytes fixed length sequential file.

I have been playing with 'dd' command and different options. None of them
working for me.

When I type the file using 'cat' command, it is showing correctly. But when
I read the file in QUIZ, I am getting different number of records (less than
6).

Any help will be highly appreciated.

Thanks
Sagar
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe <password>" in message body to powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.