FOR_EACH_TXTLIN

LANSA Composer

FOR_EACH_TXTLIN

This is an iterator activity. It will read each line (*) from a text file and on each iteration output the text line.  The processing logic nested beneath FOR_EACH_TXTLIN activity is repeated for each line read.

This activity is not intended for routine processing of large volumes of data.  It can be useful however for transferring limited amounts of information between activities, transformation maps and the processing sequence variable pool.

(*) Any of the line terminators (CR, CRLF, LF, NL or LFCR) will be used to indicate the end of a line.

INPUT Parameters:

TXTFILEPATH : Required

This parameter must contain the path of the text file to be read.

eg C:\memo.txt

or /memos/memo1.txt

OUTPUT Parameters:

TXTLINE

For each iteration, this output parameter will contain the value of the current text line read.