Mind you I'm just spouting ideas off the top of my head...
If you're accessing local databases from a character mode procedure editor running in a terminal emulator (vt100, vt200, etc.) session -- why are you specifying -S, -N, and -H parameters in the .pf? Those are parameters that belong in...