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
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Can you please let me know the centre name of INS certification in Kolkata.
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...)
Write down the divisions of cobol program?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
Which division and paragraphs are mandatory for a COBOL program?
What are the cobol coding sheets?
what happens if parmparameter passes zero bytes to the program
What are the various section in data division and briefly explain them.
Write a program that uses move corresponding.
What is rmode(any) ?
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?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
How arrays can be defined in COBOL?