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 MOVE REDEFINES CLAUSE FROM INPUT TO OUTPUT ?
With in these three which one is the default one Call Reference, Call By Value, Call By Content.-Which one is default?
How is sign stored in a comp-3 field?
RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE
what is s000 u4087 error? please give the all error codes in cobol,jcl.
what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?
What is inspect in cobol ?
consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?
Please let me know at which Scenarios we will go for STATIC call or DYNAMIC
What is length is cobol?