View previous topic :: View next topic
|
Author |
Message |
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
Hi i am using below function
Date1 defination pIC 9(08).
Date2 defination pIC 9(08).
MOVE FUNCTION INTEGER-OF-DATE(date1)
TO date2.
When i compile the program
Numeric function "INTEGER FUNCTION INTEGER-OF-DATE" was not allowed in this context. The statement was discarded.
Kindly let me know how can it be resolved for above Move statement |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
It must be used as part of an arithmetic expression. EG:
Code: |
03 WS-INTEGER-OF-DATE PIC S9(09) COMP-3.
MOVE 20101124 TO DATE1.
COMPUTE WS-INTEGER-OF-DATE = FUNCTION INTEGER-OF-DATE (DATE1).
|
This is clearly documented in the IBM documentation, so for future reference as well as avoid being flamed, may I suggest -
www.ibmmainframes.com/manuals.php
OR -
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/library
Thank you for your support....
Bill |
|
Back to top |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
thanks bill. |
|
Back to top |
|
|
|