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
What is a scope terminator give example?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What is the default value(s) for an initialize and what keyword allows for an override of the default?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What the difference is between continue and next sentence?
how do you reference the printer file formats from cobol programs
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How do you differentiate between cobol and cobol-ii?
Describe the cobol database components?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Explain about different table spaces.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
what is the difference between COBOL2 AND COBOL390?