ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Computer & Technology Related (https://www.scoobynet.com/computer-and-technology-related-34/)
-   -   Manipulating files with long records (https://www.scoobynet.com/computer-and-technology-related-34/122118-manipulating-files-with-long-records.html)

suffolkscoob 14 August 2002 03:57 PM

As Linda in Becker would say "here's the thing..."

I am currently testing a system which uses a record length of 538 characters (ASCII) or 385 bytes (Binary) and I need to generate test data for this system using existing data. Does anyone know of any tools which will allow me to easily edit records of this length in UNIX or Windows. If it was a Mainframe system I'd use Fileaid, is there anything similar?

Cheers

Bill

ChrisS/P1 14 August 2002 04:28 PM

I'd use VI, but unless you know it, it ain't that easy.
Download one of the many Unix command line utils and see if its any good.
I'm currently using something called UNIXDOS. Got it from Tucows I think.

stevencotton 14 August 2002 05:02 PM

Can you explain a bit further? You want to generate test data, how? Those record lengths aren't big at all. Do you have test data you need to convert somehow or what?

suffolkscoob 15 August 2002 08:51 AM

stevecotton,
The issue is that the test data will have to be hand-crafted. We are adding new fields to the internal record (these fields already exist in the input files). I can use current input files from our live system and amend the fields under test to check that validation / processing is taking place correctly.

I guess the real problems are that I hate VI and was looking for a utility which would allow me to provide a file definition and a file and have the file displayed with all the fields labelled, just like FileAid does.

Never mind, I'll just have to do something with Perl.

stevencotton 15 August 2002 09:44 AM

I can't see how vi would help anyway. You need perls pack() and unpack() for that.

Steve.


All times are GMT +1. The time now is 08:27 AM.


© 2024 MH Sub I, LLC dba Internet Brands