Can we put move statement in COBOL copybook
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?
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.
How many sections are there in data division in COBOL?
what is the default print format? in cobol
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.
what is the maximum error code in mainframe
Write a program to explain size error.
how we rectify soc4 and soc7 error in project(need real time answer)? please reply
can any one help -s806
In an EVALUATE statement, can I give a complex condition on a when clause?
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.
In which area will you utilize 88 level items in cobol?