gnucobol-users
[Top][All Lists]
Advanced

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

[open-cobol-list] substitute not found ?


From: Patrick
Subject: [open-cobol-list] substitute not found ?
Date: Sun, 08 Sep 2013 09:35:28 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130809 Thunderbird/17.0.8

The strangest thing has just happened.

Just yesterday I am 90% sure I was able to compile program that had FUNCTION SUBSTITUTE.

The program is not working now. I reinstall open Cobol and copy and pasted a snippet from Brian's site instead of using mine and it is still failing.

Can anyone help me figure out what I am doing wrong?

Please see below, thanks




        IDENTIFICATION DIVISION.
        PROGRAM-ID. debug-file-test.
        DATA DIVISION.
        WORKING-STORAGE SECTION.
        PROCEDURE DIVISION.


            FUNCTION SUBSTITUTE(
            "This is the orginal string.";
            "original"; "new"; "string"; "text"
             )



        STOP RUN.



:cobc -x debug-file-test.cob
debug-file-test.cob:8: Error: syntax error, unexpected FUNCTION SUBSTITUTE
:cobc -V
cobc (OpenCOBOL) 1.1.0
Copyright (C) 2001-2009 Keisuke Nishida / Roger While
Built    Sep 08 2013 09:28:49
Packaged Feb 06 2009 10:30:55 CET



reply via email to

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