Quick in Batch directing info statements to a log file - Revised

Ken Langendock ken.langendock at rogers.com
Wed Jan 13 08:46:59 CST 2010


I forgot to add the NOW option on the INFO statement in the latest test.

This did in fact put out all the INFO statements, but the control characters
are INSANE.

 

[H[J)0[m[37m[40m[;f[J[m&F8S&B8SMODE:  ACTION:[24;fRead 10005E0286/01
Transform 30T1

[m[37m[40m[;15f[J...

 

Any ideas?

 

 

From: Ken Langendock [mailto:ken.langendock at rogers.com] 
Sent: January 13, 2010 9:29 AM
To: 'PowerHouse List'
Subject: Quick in Batch directing info statements to a log file

 

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/a8fdc415/attachment.htm 


More information about the powerh-l mailing list