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 / anna
WORKING-STORAGE SECTION.
01 WS-VARX PIC X(9) VALUE SPACE.
01 WS-VARN REDEFINES WS-VARX PIC 9(9) value zeros.
in this case you can used any data, by using right
field for numeric data ws-varN, for alphabetic /alphanumeric
ws--varX.
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Give some examples of command terminators?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
how do you reference the esds vsam file formats from cobol programs
explain sorting techniques in cobol program?
Explain about different table spaces.
IF I mention stop run in CICS what happens?
What is difference between static and dynamic call in cobol?
What are the cobol coding sheets?
What is amode(24)?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What is cobol?
What kind of error is trapped by on size error option?
What are the different open modes available in cobol?
What are all the divisions of a COBOL program?
HOw can I get the negative sign while deduct high value from low value