Unconfigured Ad Widget

Unconfigured Ad Widget Module


Announcement Module
No announcement yet.

Seems simple but..

Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Seems simple but..

    I want to populate a 7,0 len numeric fld with UDATE in ILE. Below should work but gets a compile error: C *cymd MOVE UDATE today 7 0 The result in today should be: 1000906 What's wrong with this picture??

  • #2
    Seems simple but..

    KCM2, "What's wrong with this picture??" Neither factor2 nor the result field is a date data type, so *cymd is not valid in factor1. UDATE is a numeric field which happens to contain a date, as opposed to a "real" date field. To get the effect you want, you could move UDATE to a date field, then use a *cymd move to put it in your numeric field. Depending on your release level, you could also just initialize the date field with INZ(*JOB), then use the move you do now but naming the date field in factor 2 instead. Doug