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(10) VALUE 'ABCDEFGHIJ'.
01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'.

What will happen I am going to Display the WS-VARX and WS-
VARN?

Answer Posted / mallikarjun

WE CANNOT GIVE VALUE CLAUSE IN THE SECOND STATEMENT I.E.
WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345' . IF YOU
SPECIFY VALUE CLAUSE SYSTEM WILL SHOW AN ERROR, IF YOU
SPECIFY WITH OUT VALUE CLAUSE I.E.
WS-VARN REDEFINES WS-VARX PIC 9(5).
THEN IF YOU GIVE DISPLAY STATEMENT THEN ABCDEFGHIJ AND
ABCDE WILL BE DISPLAYED

Is This Answer Correct ?    26 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between cobol and cobol-ii?

1266


What rules are followed by the search verb.

1102


What is the difference between next sentence and continue in cobol programing language?

1217


Explain how you can characterize tables in cobol?

1055


Name the sections present in data division.

1234


What are 77 levels used for?

1104


How many sections are there in data division in COBOL?

1125


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

9093


What are the different rules of SORT operation?

1134


What is the problem of ordered sequential files access?

1153


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2528


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

1113


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

1086


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

1238


How arrays can be defined in COBOL?

1206