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 |
can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)
soc-7 is a bad data,invalid data. when ever we are moving the alphabets in the position of numeric then we got this abend. so my question is if o1 ws-data pic 9(1) value passing the alphabet some x. then we got soc-7 or not? i want clarification ?
Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a
What is the use of intialize verb?
The maximum number of dimensions that an array can have in COBOL-85 is ?
What is the maximum length of a field you can define using COMP-3 in COBOL?
What is the difference between COMP & COMP-3 ?
Hai friends why we need to read a file before re-write a record?
created cluster using IDCAMS ..that is empty ..when i write a program for read using Input ..wil it open the cluster or gives any error?
hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
what are the limitations of Inline Perform?