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 / ezhilenthi
It wont show any Abend, the main purpose of REDEFINES
clause is to use the same storage area with one or more
data item with different sizes and PIC 's. We will face
Abend if we try to MOVE WS-VARN TO WS-VAR.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
how to move the records from file to array table. give with code example
Can we redefine the field of x(200) to less than 200?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What the difference is between continue and next sentence?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
what happens if parmparameter passes zero bytes to the program
Difference between cobol and cobol-ii?
What is amode(24)?
Are you comfortable in cobol or jcl?
What are the rules of the move verb?
What are the pertinent COBOL commands?
How do you reference the following file formats from cobol programs?
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.