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 |
What are different file OPEN modes available in COBOL?
created cluster using IDCAMS ..that is empty ..when i write a program for read using Input ..wil it open the cluster or gives any error?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
can u give result for the fallowing example... 05 a pic 9(2) 05 b redifines a pic x(2). move 'xy' to b. display a,b.
Name the divisions in a COBOL program ?
HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?
I have the file which is having the extension no as records. sample file will look like below. 2310 3410 3256 4350 3781 5408 I need to replace the record which is starting with 3 to 5 (i.e) 3410 to 5410. How can we do it through cobol and cobol-db2 program? I need the possible logic?
How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?
Difference between cobol and cobol-ii?
Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it?