695 pts.
 how to update DATA AREA
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

Software/Hardware used:
ASKED: July 29, 2008  8:43 AM
UPDATED: July 29, 2008  1:22 PM

Answer Wiki:
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.
Last Wiki Answer Submitted:  July 29, 2008  10:20 am  by  CHANDRAVELLANKI   25 pts.
All Answer Wiki Contributors:  CHANDRAVELLANKI   25 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Hi,

I think the only thing you need to change is the OUT to put out edate3 instead of date.

Regards,

Martin Gilbert.

 23,625 pts.