[Stackoverflow] [Progress OpenEdge ABL] How to determine if a procedure was passed a file to standard input when run via the command line

  • Thread starter Александр Овчинников
  • Start date
Status
Not open for further replies.
А

Александр Овчинников

Guest
By running the procedure through the command line, pointing it to the input file like this

Code:
_progres -b -p test.p < test.txt

I can read the contents of test.txt into test.p with a simple

Code:
def var cline as c no-undo.
_tt:
do while true on endkey undo _tt,leave _tt:
import unformatted cline.
end.

However, if i don't pass a file to test.p, then without an explicitly open input, the error will be ** Attempt to read with no current source of input. (513). How to determine that a procedure was passed a file as input.

Continue reading...
 
Status
Not open for further replies.
Top