how to change picture class of copy book variable inside
program?
Answer Posted / sathishkumar
Hi,
Use Replacing option along with COPY.
Copy book(SAMPLE) defined as :
01 COPY REC
05 Emp-no 9(5).
05 name x(5).
If you want to change the Emp-No to 9(6).
Copy SAMPLE Replacing EMp-no by EMP-no1.
Define EMp-no1 as 9(6.
| Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is perform what is varying?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
example for sub strings ? and refernce modifications whit output pls
When is inspect verb is used in cobol?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Discuss about changing dataset name in proc.
how do you reference the variable block file formats from cobol programs
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Describe the cobol database components?
Difference between cobol and cobol-ii?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What are the rules of the move verb?
What is the difference between Call and a Link?