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

Which division and paragraphs are mandatory for a COBOL program?

1331


Name the sections present in data division.

1310


i want a program using by if, evaluate , string, unstring, perform, occurs?

4801


Explain how to differentiate call by context by comparing it to other calls?

1245


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

1550


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2187


What is the difference between comp and comp-3 usage?

1258


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

1210


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

1232


What are the different rules of SORT operation?

1202


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1218


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

1174


Why occurs cannot be used in 01 level in COBOL?

1205


When is inspect verb is used in cobol?

1312


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

1381