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: Bill Klein
Subject: Re: [open-cobol-list] opencobol and COPY THRU syntax
Date: Fri, 23 May 2008 09:33:01 -0500

I didn't reply to this when first posted.  It is interesting that this NCR
syntax is "sort-of" like an IBM extension - also available with Micro Focus.
See:

 http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/IGY3LR40/8.1.1 

Personally, I think that this is a "little used" feature of both the IBM and
the Micro Focus compilers, but it does exist outside the NCR compiler.

> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden On 
> Behalf Of John Culleton
> Sent: Saturday, April 26, 2008 7:26 AM
> To: address@hidden
> Subject: Re: [open-cobol-list] opencobol and COPY THRU syntax
> 
> 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
> 
> --------------------------------------------------------------
> -----------
> 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
> 




reply via email to

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