Search code examples
stderrprogress-4glopenedge

Write to the system's standard error in Progress


I am writing a small program in Progress that needs to write an error message to the system's standard error. What ways, simple if at all possible, can I use to print to standard error?

I am using OpenEdge 11.3.


Solution

  • When on Windows (10.2B+) you can use .NET:

    System.Console:Error:WriteLine ("This is an error message") . 
    

    together with

    prowin32 2> stderr.out