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

if you perform any arithmetic operation than comes the
question of any abend

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the sections present in data division.

697


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1951


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

8156


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

928


What type of SDLC u followed? Why?

1516






Explain what you understand by passing by value.

692


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?

1228


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5053


What is the difference between binary search and sequential search?

638


Explain the configuration section of a cobol program with examples of syntax.

655


What are various search techniques in cobol? Explain.

641


What is the difference between goback, stop run and exit program in cobol?

920


how do you reference the ksds vsam file formats from cobol programs

662


What is rmode(any) ?

680


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

670