Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

In A cobol program , we can use COPY Statement in FILE-
SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION
basically what is the difference

Answer Posted / vikas pujar

At File and WS section we declare variables so copy is used
oftenly in projects , in ENV Division just declare files
ddname and logical file name in Input-output section, so
its not used here.

Copy Copybook1, if this is copybook name this can be used
only once tn program either in file section or ws section,
or else will get error that duplicate varaiable names used.

Copy used at File-Section or WS section behaves same way,
so dont think there is any diff in the way Copy behaves at
diff sections.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many sections are there in data division in COBOL?

1113


how to access the file from prodution from changeman tool and to submit a file to production

7517


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

3213


how to move the records from file to array table. give with code example

2655


What is the difference between comp and comp-3 usage?

1177


What are the pertinent COBOL commands?

3151


What is the default value(s) for an initialize and what keyword allows for an override of the default?

1185


Can we change the password using ALTER? anyone tried and changed?

1991


What is the Purpose of POINTER Phrase in STRING command in COBOL?

1229


What are the different open modes available in cobol?

1175


what is amode(24), amode(31), rmode(24) and rmode(any)?

1131


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1306


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

4153


i need a small 3d program using inline and outline.

2194


Explain the configuration section of a cobol program with examples of syntax.

1168