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


Please Help Members By Posting Answers For Below Questions

how to convert the recors form vsam file to db2 table tru file aid

2757


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

697


How do you differentiate between cobol and cobol-ii?

651


What are the cobol coding sheets?

657


What are the pertinent COBOL commands?

2619






what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8154


What are various search techniques in cobol? Explain.

641


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1899


A table has two indexes defined. Which one will be used by the SEARCH?

752


What are the various section in data division and briefly explain them.

692


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

769


What is the difference between Global and External Variables?

659


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.

2050


Write a cobol program making use of the redefine clause.

725


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

2099