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

Write a program to explain size error.

881


What is the problem of ordered sequential files access?

903


Differentiate between structured cobol programming and object-oriented cobol programming.

833


What rules are to be followed while using the corresponding options?

827


Why did you choose to work with ibm mainframe cobol programming?

845


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1350


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2121


What is the difference between perform … with test after and perform … with test before?

1147


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

2088


Write a cobol program making use of the redefine clause.

921


How do you differentiate between cobol and cobol-ii?

852


Write the code implementing the perform … varying.

820


What is link edit in cobol?

937


Explain about different table spaces.

852


How to know whether the module is dynamical or statistical?

860