Page 1 of 1

Variance of Restrict to Lines

Posted: Sat Mar 04, 2006 7:35 am
by Cratos
Is there a Restriction filter (or workaround) that will limit the code to be processed based on a "start" identifier and terminated by an "end" identifier, the identifiers being specific literals in the text?

For example:
When the text "DATA DIVISION" is encountered, perform all sub-filters until the text "WORKING-STORAGE SECTION" is found. The number of lines between the start identifier and the end identifier is not constant within different files.

Thanks.

Posted: Thu Mar 09, 2006 8:04 am
by DataMystic Support
Yes - just use a search/replace as the Restriction.