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

How to print 10 to 1 if the input have only 10 digit number?

808


What is the difference between binary search and sequential search?

638


What is the difference between Global and External Variables?

660


What is rmode(any) ?

680


What is difference between static and dynamic call in cobol?

772






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

704


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

667


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

713


What is link edit in cobol?

752


How are the next sentence and continue different from each other?

760


How do define dynamic array in cobol.

669


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

417


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5371


In which area will you utilize 88 level items in cobol?

716


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17028