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 / lalith
Working storage section:-
01 WS-VARX PIC X(9) VALUE SPACES.
01 WS-VARN REDEFINES WS-VARX PIC 9(9).
REDEFINES: It is used to save the memory space....
ur declearing like that ws-varn will take the same memory
of ws-varx...
when u used display statement
DISPLAY WS-VARN
it shows the spaces... WS-VARN will take same memory of WS-
VARX irrespective of data type....
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What are the different rules of SORT operation?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What guidelines should be followed to write a structured cobol prgm?
What is the difference between binary search and sequential search?
How to print 10 to 1 if the input have only 10 digit number?
Whats the difference between search & search ALL?
What is inspect in cobol ?
Write a program to explain size error.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What is the local-storage section?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
Name the sections present in data division.
what is amode(24), amode(31), rmode(24) and rmode(any)?