× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



As I indicated in an earlier post about converting a string to packed
decimal, I use a state transition diagram and engine to analyze these
things. 

I have had to write, at least 4, of these with some pretty strange rules and
the state transition engine has handled them with ease

Absolutely nothing beats a state transition engine for parsing strings of
data. 

In fact, I have a service program that parses strings. E-mail or call me if
you would like to discuss this further.

And, of course, you can also create them in RPG III. Just takes a bit more
code and is not as elegant but works fine.

E-mail or call me if you would like to discuss this further.

If you have access to the News/400 CD rom, look at the November 1988 issue,
page 61, "The Infinite Uses of Finite State Machines" by Mel Beckman. The
article tells you how to construct the diagrams and the state transition
tables and the pseudo code for engines.  

I consider the fact that very few, if anyone, in the AS/400 world uses them
to be a real shame.

We had a vendor that was analyzing FEDX strings by doing searches in RPG.
Was taking the entire CPU each time we did FEDX. I created a state
transition diagram and was able to parse the same string in a fraction of a
second.  

or you can write brute force code to analyze them but what a job!

Alan Campin
Case Logic, Inc.
(303) 652-1036
alan.campin@caselogic.com

-----Original Message-----
From: golda joseph [mailto:golda_j@hotmail.com]
Sent: Friday, November 05, 1999 12:29 PM
To: RPG400-L@midrange.com
Subject: Comma Delimited File


Hi,
    How can I read a comma delimited file?

Thanks in Advance,
GAJ

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.