+ Reply to Thread
Results 1 to 2 of 2

Thread: Seems simple but..

  1. #1
    Guest.Visitor Guest

    Default 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. #2
    D.Handy Guest

    Default 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

+ Reply to Thread

Similar Threads

  1. Need Simple DDS / CL for Menu
    By klaborde in forum CL
    Replies: 2
    Last Post: 05-08-2009, 01:50 PM
  2. Debug is simple, right?
    By EDIguru in forum CL
    Replies: 4
    Last Post: 04-02-2009, 07:10 PM
  3. Three Simple RPG Tips
    By Guest.Visitor in forum RPG
    Replies: 5
    Last Post: 08-07-2003, 10:17 AM
  4. A Simple Question from a Simple mind... Telnet Session.
    By Guest.Visitor in forum System Administration
    Replies: 5
    Last Post: 12-03-2001, 08:44 AM
  5. Simple RPG problem
    By Guest.Visitor in forum Programming
    Replies: 16
    Last Post: 09-14-2000, 06:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts