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 |
RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE
Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it?
how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0
Difference between cobol and cobol-ii?
can we declare occurs in 01 level?
consider the fallowing 77 stat pic 9. 88 male value 1,2,3. 88 female value 4 through7. what will be the value of stat a) set male to true. b) set female to true.
explain sorting techniques in cobol program?
if a file has 1000 recods how copy the records from 1 to 100 records using sort
Write a program to explain size error.
How you can characterize tables in cobol?
how to code in cobol while using variable block file?
what is record label is empty or standard in file description of data division?