Tuesday, June 18, 2013

Only the lines which contain a particular string

If we need to see only the lines which have a particular string, then we can use the command

X ALL; F 'STRING' ALL

This command is especially useful when we need to review standards in a cobol program.

For example, if we need to check that "TO" clause is at a particular position -

X ALL; F 'TO' ALL

No comments:

Post a Comment