gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] Question about FUNCTION / up-to-date version OpenCOBOL


From: henry wang
Subject: [open-cobol-list] Question about FUNCTION / up-to-date version OpenCOBOL
Date: Mon Oct 24 02:46:17 2005

Hi Roger,Hi All,
I'm new to OpenCOBOL, got the warning: 'FUNCTION'.... 
as followig:  

-------------- t1.cob ------------------------
*Test FUNCTION LENGTH
      IDENTIFICATION DIVISION.
      PROGRAM-ID. t1.
      DATA DIVISION.
      WORKING-STORAGE SECTION.
        01 TD PIC X(21).
        01 L  PIC S9(2) BINARY VALUE -1.
        01 F  PIC S9(4) BINARY VALUE 10.
      PROCEDURE DIVISION.      
      MOVE FUNCTION CURRENT-DATE TO TD.
      DISPLAY "Current date is " TD.
      COMPUTE L = FUNCTION LENGTH (F).
      DISPLAY "Test FUNCTION LENGTH, the length of
field F (value " F ") is " L.
      STOP RUN.
------------------------compile and run
--------------------
linux:/usr/open-cobol-0.32/cobc # cobc -free t1.cob
t1.cob:16: warning: file unterminated by a newline
t1.cob:10: warning: 'FUNCTION' not implemented
t1.cob:12: warning: 'FUNCTION' not implemented
linux:/usr/open-cobol-0.32/cobc # ./t1
Current date is                                       
                <--- error
Test FUNCTION LENGTH, the length of field F (value
+0010) is -01       <--- error
-----------------------------------------------------------------------------------
But I have read the mail from Roger on 2005-06-28.
"So, and now to FUNCTION"s.
 What is implemented -
 ABS
 ..
 CURRENT-DATE
 ...
 LENGTH
 ...
"
 Meanwhile, I noticed the the subject of Roger's mail
is "CVS Update 20050628 - FUNCTION"s !",
 I wonder what went wrong by me.
 How I can get the up-to-date test version of
OpenCOBOL? 
 I`m using open-cobol 3.2 on SuSE Linux 9.1. 
 Yesterday I got the latest version form web-based CVS
Repository Viewer:
http://cvs.sourceforge.net/viewcvs.py/open-cobol/open-cobol/
 rebuilt cobc compiler,tested again, but the error
insisted.
 Could anyone advise me ?
 
 Thanks in advance,
 Kind Regards
 Henry


                
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]