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
In COBOL, what is the different between index and subscript?
What is the utilization of copybook in cobol?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
When is inspect verb is used in cobol?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
How many sections are there in data division in COBOL?
What is a scope terminator give example?
What are declaratives and what are their uses in cobol?
How do you get the data to code the BMS macro?
What are the access modes of START statement?
How many bytes S(8) comp field occupy and its maximum value?
In COBOL programming, what is PERFORM? What is VARYING?
What is comp-1 and comp-2?
Write some characteristics of cobol as means of business language.