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

If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1232


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

2015


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

1181


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

9020


how do you reference the esds vsam file formats from cobol programs

1131


What is an in line perform? When would you use it? Anything else you wish to say about it.

1022


How do u write test cases?

2013


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1107


What is Pic 9v99 Indicates in COBOL?

1179


What is the difference between binary search and sequential search?

1046


what is difference between cobol and cobol/400

22737


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

1144


How many bytes S(8) comp field occupy and its maximum value?

2092


What is rmode(24)

1099


how to access the file from prodution from changeman tool and to submit a file to production

7443