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 want Display WS-VARX and WS-VARN?

Answer Posted / jitinder

The Syntax of Redefine Clause is

Label number data-name-1 REDFINES data-name-2

Here data-name-1 should not contain VALUE clause, but data-
name-2 can contain VALUE clause.

Plz correct me if i m wrong.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is search and searchall?what is the diffrence between them?give an best example?

5534


What is the difference between binary search and sequential search?

634


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2654


What is the compute verb? How is it used?

649


Define static linking and dynamic linking.

654






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

8138


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1639


Give some examples of command terminators?

749


What are the different rules to perform a Search?

610


In which area will you utilize 88 level items in cobol?

708


What are the cobol coding sheets?

655


how do you reference the variable block file formats from cobol programs

674


What is report-item in COBOL?

702


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5355


What are all the divisions of a COBOL program?

658