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 |
how to change picture class of copy book variable inside program?
what is the difference between Plan & package?
How can we pass data from cobol to JCl?
i want to enter the name 'pandu' into ur table how?
Write a program that uses move corresponding.
in the TIME parameter we r giving hours r minutes
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
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?
Why we are using comp and comp-3 in real time projects?
I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?
what is rediffine clause?in what situation it can use?give me real time example?
How To move a value to an array using move verb?