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 convert the recors form vsam file to db2 table tru file aid
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
How do you differentiate between cobol and cobol-ii?
What are the cobol coding sheets?
What are the pertinent COBOL commands?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What are various search techniques in cobol? Explain.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
A table has two indexes defined. Which one will be used by the SEARCH?
What are the various section in data division and briefly explain them.
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is the difference between Global and External Variables?
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.
Write a cobol program making use of the redefine clause.
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc