Can we put move statement in COBOL copybook

Answers were Sorted based on User's Feedback



Can we put move statement in COBOL copybook..

Answer / ankitha

copy book is nothing but pre written cobol statements and
can be used in any division in cobol pgm ,you can code move
statement in copy book and copy in procedure division.

Is This Answer Correct ?    16 Yes 0 No

Can we put move statement in COBOL copybook..

Answer / tata

we can use move in copy book. but
if ur copybook contains procedure division statements
with move statement.. then that variables which were wriiten
with move statement, should be declared in ws-section of
data division.
in this particular case only this is possible.. in all
other cases this is not popssible.

Is This Answer Correct ?    6 Yes 2 No

Can we put move statement in COBOL copybook..

Answer / suersh ramaiyan

Copy book means... A piece of code may be used in many programs.
We can write that piece of code in a member of a PDS (copy book) and we can use anywhere in the COBOL programs.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More COBOL Interview Questions

The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?

6 Answers   Cognizant,


Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefines a. 03 c occus 6 times pic 9. 02 d occurs 6 times pic 9. 03 e pic x(5) 03 f pic 999.

12 Answers  


How many sections are there in data division in COBOL?

0 Answers   B-Ways TecnoSoft,


what is the default print format? in cobol

3 Answers   HSBC,


We are using the searching a table which is indexed, once the key is found, how can we get the occurance at which the key was found.

1 Answers  






what is the maximum error code in mainframe

2 Answers  


Write a program to explain size error.

0 Answers  


how we rectify soc4 and soc7 error in project(need real time answer)? please reply

3 Answers   HCL, Wipro,


can any one help -s806

6 Answers  


In an EVALUATE statement, can I give a complex condition on a when clause?

2 Answers  


WORKING-STORAGE SECTION. 01 A PIC X(3) VALUE 'ABC' 01 B PIC 9(3). PROCEDURE DIVISION. MOVE A TO B. STOP RUN. OUTPUT IS: AB3 WHY AND HOW THIS IS HAPPENING.

4 Answers   Atos Origin,


In which area will you utilize 88 level items in cobol?

0 Answers  


Categories