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...

Without using move verb how to move one variable to another.

Answer Posted / manikandesvaran

1)Using REDEFINES you can acheive this.

For ex.
10 WS-OLD-START-DATE PIC 9(8).

10 WS-NEW-START-DATE REDEFINES WS-OLD-START-DATE.
15 WS-START-YEAR PIC 9(4).
15 WS-START-MONTH PIC 9(2).
15 WS-START-DAY PIC 9(2).

Now WS-NEW-START-DATE will hold the value of WS-OLD-START-
DATE.

2)Using UNSTRING operator.

UNSTRING WS-NEW INTO WS-OLD

3)Using COMPUTE verb.

COMPUTE WS-NEW = WS-OLD.

4)Using SET statement.

SET OLD to NEW.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different open modes available in cobol?

1167


Difference between cobol and cobol-ii?

1219


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

834


What is the Purpose of POINTER Phrase in STRING command in COBOL?

1212


What is the difference between a binary search and a sequential search what are the pertinent cobol?

1110


Write a program to enter and display the names of students in a class using the occurs clause.

1172


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

1078


) How do u handle errors in BMS macro?

1928


For rewrite, why is it mandatory that file needs to be opened?

1082


Explain about different table spaces.

1064


How do you differentiate between cobol and cobol-ii?

1161


How to remove 2 duplicate records and copy only one using job control language?

1190


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

1390


how can i see junk values in dclgen or in hostvariable of comp ?

2961


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

2215