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

What will happen if a variable is declared as below..
Explain with an example?

Working storage section:-
01 WS-VARX PIC X(9) VALUE SPACES.
01 WS-VARN REDEFINES WS-VARX PIC 9(9).

Answer Posted / lalit

I am agreed with Rookie. It will abend if any mathematical
operation like add, subtract will be performed with
variable WS-VARX, but if any mathematical operation is
performed using WS-VARN then it will not abend because it
is numeric in nature.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are all the divisions of a COBOL program?

1219


Discuss about changing dataset name in proc.

1237


what is search and searchall?what is the diffrence between them?give an best example?

6837


Explain how you can characterize tables in cobol?

1063


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

1144


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1361


In COBOL, what is the different between index and subscript?

1245


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1329


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1130


what is the difference between COBOL2 AND COBOL390?

3059


What is the LINKAGE SECTION used in COBOL?

1530


What is the local-storage section?

1149


What is the problem of ordered sequential files access?

1167


Which division and paragraphs are mandatory for a COBOL program?

1279


Write a program that uses move corresponding.

1153