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 |
input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16.... output:- A = 100,B=36,C=50. Here spaces are considered between numbers. When we give input as above, the numbers should be added n displayed.So please help me out.
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Can anyone tell me how to handle the array beyond the limit. If we have an array or a table which can handle 5000 records but now we have to compensate 20000 records with the same array? how to handle the situation.
What is EIBCALEN? Why it is used?
How To move a value to an array using move verb?
What is the difference between a DYNAMIC and STATIC call in COBOL?
What is the compute verb? How is it used?
how the control comes back from subprogram to mainprogram
What does the IS NUMERIC clause establish ?
What is difference between COBOL and VS COBOL II?.
In an EVALUTE statement is the order of the WHEN clauses significant?
I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.