Reading binary files: Use LineTerminator=NONE

I was reading binary files and forgot to set the LineTerminator parameter. It also confused me quite a lot, as the file stopped at byte value 37 and I am used to LineFeed being byte value 10.

But this i IBM i series and 37 is LineFeed… So I should have used:

Use Builtin(STM_FILE_OPEN) With_Args(#IZFILE 'READ BINARY LineTerminator=NONE NoTrim') To_Get(#FILENO #RETNCODE)

Leave a comment