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

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

719


What the difference is between continue and next sentence?

665


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

763


What are the various section in data division and briefly explain them.

700


What is the difference between PIC 9.99 and 9v99 in COBOL?

737






I have a File that has duplicate records. I need only those records that occur more than thrice.?

8662


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10637


Difference between cobol and cobol-ii?

715


Write the code implementing the perform … varying.

646


How do you reference the following file formats from cobol programs?

697


What is amode(24)?

684


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

724


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1703


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1234


What are declaratives and what are their uses in cobol?

714