I believe there's a typo in the SQL Interface guide [https://docs.dyalog.com/17.1/SQL%20Interface%20Guide.pdf]
In the reference to SQA.Apl2Scar (p. 49) it says that parameter ascii should be 1 for ascii or 1 for binary. The latter should be 0, I think.