What will happen if a variable is declared as below..
Explain with an example? Working storage section:-
01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'.
01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'.
What will happen I am going to Display the WS-VARX and WS-
VARN?
Answer Posted / neela
Hi KHB Naidhu,
pic x means it should be alphanumeric
pic 9 means it should be Numeric
so we have to move numeric values also to the pic x
for this qtion is correct what was explained my
mallikarjuna.
regards
Neela
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is link edit in cobol?
How arrays can be defined in COBOL?
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?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
Differentiate between structured cobol programming and object-oriented cobol programming.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is a SSRANGE and NOSSRANGE?
Write the code to count the sum of n natural numbers.
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Explain how to differentiate call by context by comparing it to other calls?
What is inspect in cobol ?
Which is not true about evaluate statement
What is length is cobol?
HOw can I get the negative sign while deduct high value from low value
explain sorting techniques in cobol program?