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
Explain what you understand by passing by value.
Mention the guidelines to write a structured cobol program?
how do you reference the variable unblock file formats from cobol programs
how do you define single dimensional array and multidimensional array in your cobol?
What is the difference between perform … with test after and perform … with test before?
Explain about different table spaces.
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
How do you define a variable of comp-1 and comp-2?
What is the utilization of copybook in cobol?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
how to convert the recors form vsam file to db2 table tru file aid
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
How do define dynamic array in cobol.
In COBOL programming, what is PERFORM? What is VARYING?