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
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 to refer the data field?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
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.
Give some examples of command terminators?
Difference between cobol and cobol-ii?
What are the different rules of SORT operation?
How do get the result of your program directly on your pc?
What is comp-1 and comp-2?
Explain the configuration section of a cobol program with examples of syntax.
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What are the access modes of START statement?
What is a scope terminator give example?
) How do u handle errors in BMS macro
Why is it necessary that file needs to be opened in I-O mode for REWRITE?