Quick in Batch directing info statements to a log file

Bob Deskin Bob.Deskin at ca.ibm.com
Wed Jan 13 08:49:53 CST 2010


Just off the top, QKOUT captures all output to the terminal. Since you 
only need to see INFO output and there's no "input", you don't care about 
the screen display.

To get the INFO to issue immediately and not wait until an actual screen 
display, add the NOW option at the end.

Bob



From:
"Ken Langendock" <ken.langendock at rogers.com>
To:
"'PowerHouse List'" <powerh-l at lists.sowder.com>
Date:
2010-01-13 09:30 AM
Subject:
Quick in Batch directing info statements to a log file
Sent by:
powerh-l-bounces+bob.deskin=ca.ibm.com at lists.sowder.com



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-- 
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l at lists.sowder.com
Subscribe: 'subscribe' in message body to 
powerh-l-request at lists.sowder.com
Unsubscribe: 'unsubscribe &lt;password&gt;' in message body to 
powerh-l-request at lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
Add 'site:lists.sowder.com powerh-l' to your search terms to search the 
list archive at Google.





More information about the powerh-l mailing list