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 / prasanna

Wont it show SOC or ASRA because of the data exception...
(non numeric in a numeric field) ??

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1646


What are the access modes of START statement?

716


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

672


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2728


What is the difference between comp and comp-3?

694






How you can characterize tables in cobol?

710


What is redefines clause in COBOL?

844


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

704


Which Search verb is equivalent to PERFORM…VARYING?

681


How do we get current date from system with century in COBOL?

796


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

743


Explain what you understand by passing by value.

692


What is the Purpose of Pointer in the string?

641


What is amode(31)

716


What are the different types of condition in cobol and write their forms.

656