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 |
Why would you use find and get rather than to obtain?
What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....
Explain about level numbers?
When is inspect verb is used in cobol?
Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.
9(2).99 how many bytes take? Why . consider as a byte?
If i have a variable A pic 9(2) value 10 Compute A = a - 100 what will be the value of A and will there be any error becoz of the Negative value
What is the difference between PIC 9.99 and PIC9v99?
can any one help -s806
How do you code Cobol to access a parameter that has been defined in JCL?
what will happen if pass values more than 100 using PARM parameter?
What is the difference between a binary search and a sequential search what are the pertinent cobol?