Newsletters Subscriptions Media Kit About Us Contact Search Home

mgo
OS/400 Edition
Volume 3, Number 51 -- August 6, 2003

Redirecting Java's Standard Output, Take 2


Hey, David:

Regarding your Redirecting Java's Standard Output article in the July 16, 2003 issue of Midrange Guru.

As a coincidence, I was looking into this question that day, so I read your article with special interest. Just after I read your article, I found out about another method of redirecting stdout and stderr:

1. In the home directory as listed in the user profile HOMEDIR parameter, or directory /QIBM/UserData/Java400, add a file called SystemDefault.properties. In that file, add two lines. For example:

   os400.stdout=file:/home/bmorris/stdout.txt
   os400.stderr=file:/home/bmorris/stderr.txt

2. Change environment variable QIBM_USR_DESCRIPTOR_STDIO

ADDENVVAR ENVVAR(QIBM_USE_DESCRIPTOR_STDIO) VALUE(Y)

Now, stdout and stderr output will go to those files.

See the following links for more information:

http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzaha/sysprop2.htm

http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzaha/sdpropf.htm

--Barbara Morris

[Note: Barbara Morris is a member of IBM's RPG compiler developer team.]


Sponsored By
COMMON

COMMON Fall 2003 Conference and Expo
IT in the Palm of Your Hand
September 7 - 11, in Orlando, Florida.

· Education: Hundreds of sessions over five days
· Networking: Meet IT professionals, IBM executives, and developers
· Influence IBM: Attend sound-off sessions
· First-Hand Look at Latest Products: Talk to the industry's top solution providers

COMMON is the best value in IT education, so don't miss out!

Click and visit www.common.org for details!


THIS ISSUE
SPONSORED BY:

WorksRight Software
COMMON


BACK ISSUES

TABLE OF
CONTENTS

Two-Dimensional Compile-Time Arrays in RPG

Redirecting Java's Standard Output, Take 2

Reader Feedback and Insights: COBOL API Resources


Editors
Howard Arner
Joe Hertvik
Ted Holt
David Morris

Managing Editor
Shannon Pastore

Publisher and
Advertising Director:

Jenny Thomas

Advertising Sales Representative
Kim Reed

Contact the Editors
Do you have a gripe, inside dope or an opinion?
Email the editors:
editors@itjungle.com

Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.