Scanning for non printable characters in a variable

Hello, posting in new subject as suggested.

Is it possible to scan for linefeed and/or carriage return (LF/CR)?

Orchestrator has read a Windows text file and placed its contents into a nat414 dynamic variable, then callnatted a nat414 subprogram. Could this subprogram scan the variable for a hex code (for example) that indicates an end of line?


Hi John;

Yes, you can, for example, IF #A = SCAN H’0A’

You can also use Hex constants for EXAMINE and SEPARATE, which might be useful depending on what you must do with LF/CR if you find them.