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
For rewrite, why is it mandatory that file needs to be opened?
What is the difference between Call and a Link?
Can we change the password using ALTER? anyone tried and changed?
What are various search techniques in cobol? Explain.
What is the difference between next sentence and continue in cobol programing language?
What are the different open modes available in cobol?
how do you reference the variable block file formats from cobol programs
Write a program to enter and display the names of students in a class using the occurs clause.
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is the difference between PIC 9.99 and PIC9v99?
What is amode(31)
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What is rmode(any) ?
Which mode is used to operate the sequential file?
how do you reference the printer file formats from cobol programs