Quick in Batch directing info statements to a log file

Ken Langendock ken.langendock at rogers.com
Wed Jan 13 08:29:17 CST 2010


Hello everyone

 

I am running PH841F (on windows) and am running a quick program in batch.

I want to spit out some info messages into a log file to be able to track
this "black-box" program during a job run.

 

Basically the screen looks like this

 

SCREEN ecb100e &

       MENU

 

FILE *ecb100da DESIGNER

 

PROCEDURE INITIALIZE

BEGIN

  WHILE RETRIEVING ecb100da & ; detail records

        SEQUENTIAL

        BEGIN

        INFO = "Read " &

             + RecordNo OF ecb100da + "/" &

             + LineNo OF ecb100da 

        DO INTERNAL Process-This-Record

        END

  RETURN

END

 

The program works, but unfortunately the output only contains the last line
sent to the screen (if there was one) with a bunch of control characters. I
would prefer to see all the info statements as an audit.

 

[H[J)0[m[37m[40m[;f[JQUICK session completed.[2;f

 

 

Anyone got any ideas?

 

I could create another subfile/permanent file and write to it as if it was a
log file, but I thought this would be simpler and would not require any
additional coding.

 

Ken

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20100113/6c3d97d2/attachment.htm 


More information about the powerh-l mailing list