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 |
i am a btech cs 2009 passout. i am opting for mainframe course. is it good to do this course? pls. anyone suggest me
Name the divisions, which are available in a cobol program?
I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?
how do u link sub pgm to main pgm ?
What is SET TO TRUE all about, anyway?
What are the differences between OS VS COBOL and VS COBOL II?
what is the meaning of pic 9(09)v99-
What is the significance of 'above the line' and 'below the line'?
How to remove 2 duplicate records and copy only one using job control language?
What is the difference between PIC 9.99 and PIC9v99?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Whats the difference between search & search ALL?