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 |
How to increase the logical record length of existing PS file?
In COBOL "BEFORE" advancing is there or not ?
What are options have been removed in COBOL 11?
how do you reference the variable unblock file formats from cobol programs
without performing any operations on a file how can i know whether it contains data or not
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.
I hav vari declaration like..... 77 a pic s9(9).99. 77 b pic s9(9).99 comp. 77 c pic s9(9).99 comp-3. if i use MOVE 123456789.99 to a,b,c what happen every one working fine ?
What are the ways you can generate a copybook?
i friends greetings to the day...!!! I face a quation like"while runnig the programe every day i have to access the previous day updates only...!! Ex:- Let last day 100 customers took bank account i have to select those customers only.."
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Write the code implementing the perform … varying.