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 the difference between perform … with test after and perform … with test before?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What are declaratives and what are their uses in cobol?
Whats the difference between search & search ALL?
What is amode(24)?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is Pic 9v99 Indicates in COBOL?
) what is the difference between AID and HANDLE AID?
In COBOL, what is the different between index and subscript?
How to know whether the module is dynamical or statistical?
What are the different rules of SORT operation?
Write a program that uses move corresponding.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the difference between comp and comp-3?
what is the difference between COBOL2 AND COBOL390?