Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Manipulating files with long records

Thread Tools
 
Search this Thread
 
Old 14 August 2002, 03:57 PM
  #1  
suffolkscoob
Scooby Regular
Thread Starter
 
suffolkscoob's Avatar
 
Join Date: Apr 2002
Posts: 110
Likes: 0
Received 0 Likes on 0 Posts
Post

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
Old 14 August 2002, 04:28 PM
  #2  
ChrisS/P1
Scooby Regular
 
ChrisS/P1's Avatar
 
Join Date: Feb 2002
Location: Newcastle
Posts: 459
Likes: 0
Received 0 Likes on 0 Posts
Post

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.
Old 14 August 2002, 05:02 PM
  #3  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Post

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?
Old 15 August 2002, 08:51 AM
  #4  
suffolkscoob
Scooby Regular
Thread Starter
 
suffolkscoob's Avatar
 
Join Date: Apr 2002
Posts: 110
Likes: 0
Received 0 Likes on 0 Posts
Post

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.
Old 15 August 2002, 09:44 AM
  #5  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Post

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

Steve.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
Nick_Cat
Computer & Technology Related
2
26 September 2015 08:00 AM
Littleted
Computer & Technology Related
0
25 September 2015 08:44 AM



Quick Reply: Manipulating files with long records



All times are GMT +1. The time now is 02:32 AM.