Hi Everyone.
First of all, sorry about my poor english. I’m from spain, and i’m learning how to speak and write english correctly.
I’ve trying for a long time to register on these forums, but i think the page had a problem, and I couldn’t do it until today.
I’ve got a problem in a program I’m making now.
I’m trying to make a CSV file from a Natural sequential file. My program has “column selections” (using begin of field, length of field, data type, output format and many other modifiers), and include an option to make filters to the input file. My problem is with these filters.
Let’s see how can i explain it. It’s difficult to explain it in spanish, but in inglish it seems to be impossible to me!
I want them to have the same look as JCL (i call the batch process using a JCL program). I’m trying to make a tree with the conditions read from the JCL file. The nodes can be both conditions and connectors (AND, OR …). The problem i found with this idea is to programate a “PARSER” to interpretate the filter read from the JCL, and translate it to a easy-use structure to evaluate the conditions and filter the input file.
Have you ever made anything like this? I know JCL has the SORT instruction with INCLUDE, and surelly it’s much faster than making the filter in Natural, but i want to try.
Thank you for your help.
Best regards.
Eduardo Sisamon