gnucobol-users
[Top][All Lists]
Advanced

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

Re: [open-cobol-list] opencobol and COPY THRU syntax


From: John Culleton
Subject: Re: [open-cobol-list] opencobol and COPY THRU syntax
Date: Sat, 26 Apr 2008 08:26:13 -0400
User-agent: KMail/1.9.7

On Friday 25 April 2008 12:06:04 pm Ian Moon wrote:
> Hi... I'm pretty new to cobol. Basically I'm trying to get some
> legacy programs running with opencobol on linux from NCR System
> 3000 - NCR Cobol 85.
> The first issue I've encountered is with the COPY instruction.
>
> I could get the following instruction to work:
>
>     COPY FUN-LIB.
>
> However I get compilation errors when trying to copy in a range of
> code:
>
>     COPY FUN-LIB, 025000 THRU 025999.
> or
>     COPY FUN-LIB, 025000 THROUGH 025999.
>
> Is this supported? Is there another instruction or way to bring
> code into a program from another file? I haven't been able to find
> a list of supported instructions.
>
> Thanks for you help
>
> Ian
>
> -------------------------------------------------------------------
>------ This SF.net email is sponsored by the 2008 JavaOne(SM)
> Conference Don't miss this year's exciting event. There's still
> time to save $100. Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.
>com/javaone _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
>
> _______________________________________________________
> Get your own customized domain and email for $8.95/1-yr
> Offer ends soon. Only at http://www.doteasypromo.com/e

Faced with this problem I would simply bring the code in via an editor 
like Vim. Open the program in one vim window, the source for the copy 
text in another and cut and paste. Alternatively copy the file 
contaiing the needed text to another file name such as copied.cbl, 
then edit that file so that it contains just the needed lines. Then 
copy copied.cbl into the main file in the usual way. 

I have not encountered a "copy by range" facility before so it may be 
a proprietary extension. 

-- 
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm


reply via email to

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