HOW TO MOVE REDEFINES CLAUSE FROM INPUT TO OUTPUT ?



HOW TO MOVE REDEFINES CLAUSE FROM INPUT TO OUTPUT ?..

Answer / adarsha

01 ws-misc-vars.
05 system-date pic x(06) value spaces.
05 system-date-rede redefines system-date
10 system-dt-yy pic x(02) value spaces.
10 system-dt-mm pic x(02) value spaces.
10 system-dt-dd pic x(02) value spaces.

01 ws-rep-dt-frmt pic x(06) value space.
.
.
.

procedure division.

move system-date to ws-rep-dt-frmt.

*** when you want any particular variable to be recevied or
stored in a particular format you can redefine them in the
way you want.. here system-date-rede has the same value as
system-date !

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

how to change picture class of copy book variable inside program?

2 Answers  


what is the difference between Plan & package?

1 Answers   IBM,


How can we pass data from cobol to JCl?

7 Answers   ADP, Amdocs, IBM,


i want to enter the name 'pandu' into ur table how?

1 Answers   Fidelity,


Write a program that uses move corresponding.

0 Answers  






in the TIME parameter we r giving hours r minutes

4 Answers   IBM,


Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above

7 Answers   TCS,


I have a file it contain 10 records.i got abend at 8th record because of soc7.how do you know that perticular record got abend?

3 Answers   IBM,


Why we are using comp and comp-3 in real time projects?

4 Answers   IBM,


I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?

3 Answers   HCL, IBM,


what is rediffine clause?in what situation it can use?give me real time example?

1 Answers   IBM,


How To move a value to an array using move verb?

3 Answers   IBM,


Categories