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...


can i anyone tell me how to use copybooks in cobol



can i anyone tell me how to use copybooks in cobol..

Answer / surya

In DATA DIVISION, under WORK-STORAGE SECTION, we can mention the copy book. Please find the example below.

COPYBOOK "WRKRCD" having the below statements.
01 WORK-RECORD.
05 NAME-FIELD PIC X(1).
05 FILLER PIC X(1) VALUE SPACE.
05 RECORD-NO PIC S9(3).
05 FILLER PIC X(1) VALUE SPACE.
05 LOCATION PIC A(3) VALUE "NYC".
05 FILLER PIC X(1) VALUE SPACE.
05 NO-OF-DEPENDENTS PIC X(2).
05 FILLER PIC X(7) VALUE SPACES.

In program we can mention like below

DATA DIVISION.
WORKING-STORAGE SECTION.
COPY WRKRCD.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL400 Interview Questions

define comp?

2 Answers  


What is redefine?

0 Answers  


Can we open close file in COBOL any number of times?

2 Answers   Kanbay,


What is comp?

0 Answers  


It's possible use %TRIM statement like rpgile?

2 Answers  


can i anyone tell me how to use copybooks in cobol

1 Answers  


Define redefine?

0 Answers  


Explain the difference between section, paragraph and sentences?

0 Answers  


Explain how to update data area in cobol 400 program?

0 Answers  


what is the cobol compiler?

2 Answers   TCS,


What are Fillers ? What is the actual use of Fillers ? With small/simple Example..

1 Answers   Patni,


Code how to read 5th element of the array?

2 Answers   CGI,


Categories