Assuming that your input value of '1070112' is really CYYMMDD (your question has it as YYDDMM but you show a desired answer of DDMMYYYY 12-01-2007...) then the following should do the trick:
<pre>
dCYMDField s 7 inz('1070112')
/free
dsply (%editw(%dec(%date(CYMDField :*CYMD0) :*EUR) :'0 - - '));
*inlr = *on;
return;
/end-free
</pre>
this will result in:
DSPLY 12-01-2007
being displayed.
Bruce Vining
<a href="http://www.brucevining.com/">http://www.brucevining.com/</a>
Last Wiki Answer Submitted: February 20, 2008 2:59 pm by bvining6,055 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.