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 |
Can we redefine the field of x(200) to less than 200?
How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1: move 20 to a.
What are the divisions in a cobol program?
A cobol program to read a file , match it with other if. If match occurs then write it to an output file. If no match then no need to write it.Error log created by program to track any error.
Can the OCCURS clause be at the 01 level?
How to convert bunch of words in a line to relvant ASCII values?
what is the difference between Plan & package
Name the divisions in a COBOL program ?
what is a zoned decimal data type and how it will be stored?
What is SET TO TRUE all about, anyway?
Explain Restart Logic in Cobol?
Should I use STOP RUN in the sub program??why?