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 access the file from prodution from changeman tool and to submit a file to production
What are 77 levels used for?
) How do u handle errors in BMS macro?
Which mode is used to operate the sequential file?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
How arrays can be defined in COBOL?
What do you understand by psb and acb?
What is the difference between comp and comp-3?
What is the difference between binary search and sequential search?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is rmode(24)
What is the LINKAGE SECTION used in COBOL?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.