how to update DATA AREA

695 pts.
Tags:
Data Area
DSPDTAARA
RPGLE
hi, I have a data area(ABC) i am able to retrieve DATA AREA(ABC) in my RPGLE program and i am doing some caluculation on content of dataarea once again i want to update the data area with new value and if i come out of rpgle program i am doing DSPDTAARA ABC command on command level but i am getting previous value instead of changed one with OUT operation in Rpgle program here my program: c *DTAARA DEFINE date edate3 10 c in edate3 c edate3 dsply c eval edate3 = '2008-08-10' c out(E) date
ASKED: July 29, 2008  8:43 AM
UPDATED: July 29, 2008  1:22 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

The code should be as shown below… try this.

<pre>
C *DTAARA DEFINE TSTDTA PGMDTA 5 0
C *LOCK IN PGMDTA
C PGMDTA DSPLY
C EVAL PGMDTA = 12345
C OUT PGMDTA
C EVAL *INLR = ’1′
</pre>

Thanks
Chandra.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gilly400
    Hi, I think the only thing you need to change is the OUT to put out edate3 instead of date. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following