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
Which is not true about evaluate statement
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is amode(31)
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
explain sorting techniques in cobol program?
how do you reference the variable block file formats from cobol programs
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What are the different rules to perform a Search?
how do you reference the fixed unblock file formats from cobol programs
How do define dynamic array in cobol.
What is perform what is varying?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?