× 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.



Or if you would prefer not using global space, there are a couple APIs that replace the data area capability in RPG. They are QXXRTVDA and QXXCHGDA. I would wrap them in subprocedures and put the code in a service program for common use.

Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx

-----rpg400-l-bounces@xxxxxxxxxxxx wrote: -----

To: <rpg400-l@xxxxxxxxxxxx>
From: "Roger Harman" <RHarman@xxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
Date: 12/02/2009 05:12PM
Subject: Re: Is this an issue or is there a work around (DTAARA in Sub Procedures)

Couldn't you code it in the global section of the program or service
program?


DPalme@xxxxxxxxxxx 12/02/2009 1:55:25 PM >>>
I was converting some existing cycle code to /free format in a
subprocedure and ran across the following issue with a data area:

1416 DDebitNmbrS s 6 0 Dtaara(DebitNmbr)
======> aaaaaa
*RNF3757 20 a 022401 The keyword is not valid for definitions in
subproc

Is there any way to do this in s sub procedure or am I stuck with using
a
sub routine only? The reason I ask is because I came across the
following
on the IBM site:

No cycle code is generated for subprocedures. Consequently, you cannot
code:
Prerun-time and compile-time arrays and tables
*DTAARA definitions
Total calculations


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.