Solved

Is there a utility to parse a fixed length string?

Posted on 2000-05-12
4
223 Views
Last Modified: 2008-02-26
I don't know if this is the right area to ask this question but here goes.

I don't have VB - but I guess I can get hold of compiled VB programmes that will run (I do have M$ Office and can run VBA).

I have a number of individual fixed length record strings (approx 7,500 chara's).
I don't have yet, but will have, the record mapping - I believe I'll need approx 50 fields from the string.
I'd like to map these fields onto several rows so that they look like a conventional ascii report within say 180 chara width.
Is there a VB utility in existance that allows a non VB programmer to specify the field locations from a long record string and allow some sort of mapping to an output file?

0
Comment
Question by:capital052798
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
jsimoni earned 50 total points
ID: 2805168
if i understand your question correctly, you should use MS Access which comes with Office.  You can import your files into Access.  You can then use the Access Report Wizard to create your layout of your ASCII text file.  Once this is complete you can Export your report to a text file.
0
 

Expert Comment

by:woodsrr
ID: 2805172
Use Excel:

1. Do a file open
2. Point to the file

Excel will popup the Text Import Wizard
You can now import the data using delimited or fixed width.

From what you have descriped, you will use fixed width.
0
 

Author Comment

by:capital052798
ID: 2805204
mmm
I actually use the Access function you talk about quite a bit BUT I just wonder if Access can cope with 7,500 chara's - I assumed it didn't but I'll give it a try.
0
 

Author Comment

by:capital052798
ID: 2841483
To my surprise MS Access was able to do the job - I would still have liked a compiled routine thoug because I need this to run on machines that don't have MS Office.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question