HOW TO MOVE REDEFINES CLAUSE FROM INPUT TO OUTPUT ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what is s000 u4087 error? please give the all error codes in cobol,jcl.

16995


Can you please let me know the centre name of INS certification in Kolkata.

1702


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1908


Write down the divisions of cobol program?

653


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

804






Which division and paragraphs are mandatory for a COBOL program?

698


What are the cobol coding sheets?

652


what happens if parmparameter passes zero bytes to the program

1648


What are the various section in data division and briefly explain them.

676


Write a program that uses move corresponding.

658


What is rmode(any) ?

674


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2080


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

683


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

248


How arrays can be defined in COBOL?

649