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 / neelam saini
WORKING-STORAGE SECTION.
01 WS-VARX PIC X(9) VALUE SPACE.
01 WS-VARN REDEFINES WS-VARX PIC 9(9).
01 I PIC 9(2).
01 J PIC 9(2).
PROCEDURE DIVISION.
MAIN-SECTION.
MAIN-PARA.
MOVE 123456789 TO WS-VARN.
DISPLAY WS-VARN.
STOP RUN.
ON RUN TIME. 123456789
O/P : 123456789
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are all the divisions of a COBOL program?
What is the difference between binary search and sequential search?
how do you define single dimensional array and multidimensional array in your cobol?
What the difference is between continue and next sentence?
Mention the guidelines to write a structured cobol program?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
Explain how to differentiate call by context by comparing it to other calls?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How do we get current date from system with century in COBOL?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How can you get the ksds file records into your cobol program?
Write down the divisions of cobol program?
What are the different data types in cobol?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
How do you reference the following file formats from cobol programs?