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 SDSF?
WHAT IS SOC3?HOW IT CAN BE RESOLVED?
What is the use of EVALUATE statement?
What is the usage of comp fields in cobol?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
what is the use of comp2 ? where can we use it with example ?
waht is inspect verb? where it can be in real time?
i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
Explain Restart Logic in Cobol?
how to access vsam files in cobol and how to differentiate that this is ESDS file
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?