Unix file conversin using 'dd' command

Neil Harvey neil@nha.co.za
Sat, 30 Aug 2003 08:06:16 +0200


I use this in a script:-

echo test line1 >  qfile
echo test line2 >> qfile

#turn it into a file quiz can read
dd if=qfile of=wfile cbs=256 conv=block 

Where wfile is a 256 byte DIRECT file (UNIXIO) in the dictionary.

Wouldn't it be nice if PowerHouse was able to really read UNIX (LF
delimited) and DOS (CRLF) delimited file natively, without having to go
through hoops? The parsers seem to cope happily.....

Neil



-----Original Message-----
From: Goparaju, Vidyasagar [mailto:VGoparaju@tradepointsystems.com] 
Sent: 29 August 2003 06:59
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.