|
Hmm... I could think of a way to do it using an array and overlaying each element to each field in the file, but what a chore. And everythign would have to be done manually. Throwing around pointers to variables, having a lookup table to the variable name and it's location in the file, etc... If this was something you needed to do for your entire application, it would probably be worth it. But for one or two programs, it would be much more effort than it would be worth. So, in your program you would just need to check manually. C Case X = 'Status' C If Status = *Blanks C Eval NotComplete = '1' C EndIf C Case X = 'Cost' C If Cost = 0.00 C Eval NotComplete = '1' C EndIf C Case .... etc.. Regards, Jim Langston Stop the world, I want to get off! Vini Kolathur wrote: > Hans, > I have a file which holds a list of customers in one field and > fields "names" in another field. These fields mean that they are > mandatory fields for that particular customer in the Master database. > This idea came just to make the validation routine more generic since > diff customers have diff conditions for a field being mandatory or > not. So if the validation routine finds any of these "fields" not > having a value in the master database then it triggers of a email and > so on. > > Vini +--- | 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 mailing list archive is Copyright 1997-2025 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.