how to change picture class of copy book variable inside
program?
Answers were Sorted based on User's Feedback
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 |
Answer / sandeep_1985
You need to redefine copybook group variable in program and
then give the new picture clause for that.
I think that is the only way you can do. Correct me if i am
wrong.
| Is This Answer Correct ? | 8 Yes | 0 No |
What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?
S9(5)V9(2) occupies how many bytes memory ?
how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please
What is the default value of DISP for temp datasets
Write a program to concert an Indexed file into Sequential file?
Why we need to use redefine clause when we can define the variable seperately... what is actual need....
Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefines a. 03 c occus 6 times pic 9. 02 d occurs 6 times pic 9. 03 e pic x(5) 03 f pic 999.
How to recover a deleted source physical file from library?
What is a subscript ?
A table has two indexes defined. Which one will be used by the SEARCH?
wht is structured cobol pgm and non structred cobol pgm ?
what is the difference between external and global variables?