Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain what you understand by passing by value.

1166


Mention the guidelines to write a structured cobol program?

1103


how do you reference the variable unblock file formats from cobol programs

1335


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

1113


What is the difference between perform … with test after and perform … with test before?

1463


Explain about different table spaces.

1116


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

1085


How do you define a variable of comp-1 and comp-2?

1210


What is the utilization of copybook in cobol?

1204


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.

5756


how to convert the recors form vsam file to db2 table tru file aid

3270


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.

1449


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1510


How do define dynamic array in cobol.

1146


In COBOL programming, what is PERFORM? What is VARYING?

1156