× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks a lot for the response. I tried the snippet of code and it worked just like I wanted to. Rob also recommended the usage of debugger and I am trying to figure out how to go about using it in RSE. Thanks for all your help.

Mike.


From: Barbara Morris <bmorris@xxxxxxxxxx>
Reply-To: Websphere Development Studio Client for iSeries<wdsci-l@xxxxxxxxxxxx>
To: wdsci-l@xxxxxxxxxxxx
Subject: Re: [WDSCI-L] Seeing output in RSE.
Date: Mon, 20 Mar 2006 22:46:52 -0500
MIME-Version: 1.0
Received: from mail.midrange.com ([69.3.23.28]) by bay0-mc1-f16.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 20 Mar 2006 19:51:09 -0800 Received: from rivendell.midrange.com (localhost [127.0.0.1])by mail.midrange.com (8.13.4/8.13.4) with ESMTP id k2L3lQTi030940;Mon, 20 Mar 2006 21:47:26 -0600 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2])by mail.midrange.com (8.13.4/8.13.4) with ESMTP id k2L3lGg8030894(version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO)for <wdsci-l@xxxxxxxxxxxx>; Mon, 20 Mar 2006 21:47:23 -0600 Received: from list by ciao.gmane.org with local (Exim 4.43)id 1FLXpy-0004UB-HMfor wdsci-l@xxxxxxxxxxxx; Tue, 21 Mar 2006 04:47:14 +0100 Received: from fw54.torolab.ibm.com ([199.246.40.54])by main.gmane.org with esmtp (Gmexim 0.1 (Debian))id 1AlnuQ-0007hv-00for <wdsci-l@xxxxxxxxxxxx>; Tue, 21 Mar 2006 04:47:14 +0100 Received: from bmorris by fw54.torolab.ibm.com with local (Gmexim 0.1 (Debian))id 1AlnuQ-0007hv-00for <wdsci-l@xxxxxxxxxxxx>; Tue, 21 Mar 2006 04:47:14 +0100
X-Message-Info: 0jbW5ANosZLceAJZEATsQw7f4CL0ONLg9+j7leYQnkI=
X-Injected-Via-Gmane: http://gmane.org/
Lines: 34
References: <8ADD40C7A90F8F4BB104FEE30119623F0A992F10@xxxxxxxxxxxxxxxxxxxxxxx><BAY102-F6B400D7C32793E143A7D69BE40@xxxxxxx>
X-Complaints-To: usenet@xxxxxxxxxxxxx
X-Gmane-NNTP-Posting-Host: fw54.torolab.ibm.com
X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U)
X-Accept-Language: en
X-Virus-Scanned: ClamAV 0.88/1293/Sun Feb 19 10:40:25 2006 onrivendell.midrange.com
X-Virus-Status: Clean
X-BeenThere: wdsci-l@xxxxxxxxxxxx
X-Mailman-Version: 2.1.7
Precedence: list
List-Id: Websphere Development Studio Client for iSeries <wdsci-l.midrange.com> List-Unsubscribe: <http://lists.midrange.com/mailman/listinfo/wdsci-l>,<mailto:wdsci-l-request@xxxxxxxxxxxx?subject=unsubscribe>
List-Archive: <http://archive.midrange.com/wdsci-l>
List-Post: <mailto:wdsci-l@xxxxxxxxxxxx>
List-Help: <mailto:wdsci-l-request@xxxxxxxxxxxx?subject=help>
List-Subscribe: <http://lists.midrange.com/mailman/listinfo/wdsci-l>,<mailto:wdsci-l-request@xxxxxxxxxxxx?subject=subscribe>
Errors-To: wdsci-l-bounces@xxxxxxxxxxxx
Return-Path: wdsci-l-bounces@xxxxxxxxxxxx
X-OriginalArrivalTime: 21 Mar 2006 03:51:10.0292 (UTC) FILETIME=[B0E21940:01C64C9A]

Mike Troxclaire wrote:
>
> I am new to RPG and I have a very simple question. I am using RSE and want > to see the display/output of this program in RSE. How would I go about doing > that? Even in green screen I see the output in a flash and the control comes
> back to the prompt.
> ... Is there a break point I need to be inserting somewhere?...Any help
> would be much appreciated.
> ...
>       /free
>          dsply myDateISO ;
>          dsply myDateUSA ;
>          *inlr = *on ;
>       /end-free
>

Mike, just to answer your greenscreen question, if you don't have a
result field for DSPLY, then sometimes the DSPLY flashes the way you are
seeing.  (But not always; try calling your program from a WRKMBRPDM
command line.)

If you want your program to always halt so you can see the DSPLY, try
coding a result field for one or all of your DSPLYs.  (The second
operand is a blank literal.)

D wait        s              1a
 /free
       dsply myDateISO ;
       dsply myDateUSA ;
       dsply 'Press Enter'   ' '   wait;
 /end-free

(But it's almost always faster/easier just to use a debugger, rather
than using DSPLY.)

--
This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.

_________________________________________________________________
Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.