Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can we use redefine clause in occurs clause?

Answers were Sorted based on User's Feedback



Can we use redefine clause in occurs clause?..

Answer / leroy

Answer #2 is incorrect for IBM COCOL compiler.

Answer #1 is correct but incomplete. a) "VALUE" close can
not be used in occurring fields b) Occuring fields are the
ones that will redefine other fields not the other way
round.
Example: CORRECT
01 LIT-FIELD PIC X(21) VALUE 'SUNMONTUEWEDTHUFRISAT'.
01 DAYS REDEFINES LIT-FIELDS.
05 WEEK-DAY OCCURS 7 PIC X(03).
INCORRECT:-
01 DAYS.
05 WEEK-DAY OCCURS 7 PIC X(03).
05 LIT-FIELDS REDEFINES WEEK-DAY VALUE 'SUNMONTUE.........'

Is This Answer Correct ?    16 Yes 2 No

Can we use redefine clause in occurs clause?..

Answer / manthan

yes........we can redefine occurs clause but not having
depending clause

Is This Answer Correct ?    6 Yes 1 No

Can we use redefine clause in occurs clause?..

Answer / jagadesh

not possible because memory allocation can not be
reallocated

Is This Answer Correct ?    4 Yes 3 No

Can we use redefine clause in occurs clause?..

Answer / john

All fine but, Nikhitha's Question has to be confirmed
first;
1. Whether a redefines can be used within an occurs (OR)
2. Whether an occurs can be redefined?

Looks like Nikhita's Question is 1, but all of your answers
were for Question 2.

Is This Answer Correct ?    2 Yes 1 No

Can we use redefine clause in occurs clause?..

Answer / sroul4

Redefines is just a pointer to the memory add, thus can be
done.

Is This Answer Correct ?    1 Yes 0 No

Can we use redefine clause in occurs clause?..

Answer / saravanan

yes we can use redifines claues at level num 01... and alos
we can use both (redifine and occurs clause) together......

Is This Answer Correct ?    2 Yes 2 No

Can we use redefine clause in occurs clause?..

Answer / sivakumar sekharannair

Leroy's answer is correct. Redefined variable can have
occurs clause not in the same level but subordinate to the
higher level

Is This Answer Correct ?    1 Yes 1 No

Can we use redefine clause in occurs clause?..

Answer / subharaj

We can do that. I have done it multiple times and it works
in Enterprise Edition in mainframe.

Is This Answer Correct ?    0 Yes 0 No

Can we use redefine clause in occurs clause?..

Answer / srinivasulu

no no no no no anyone can bet on this

Is This Answer Correct ?    1 Yes 2 No

Can we use redefine clause in occurs clause?..

Answer / saravanan

answer from leroy is exactly correct ......

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More COBOL Interview Questions

TYPES OF SORTINGS. which is more prefarable.

2 Answers   Syntel, TCS,


i want to enter the name 'pandu' into ur table how?

1 Answers   Fidelity,


If i have a variable A pic 9(2) value 10 Compute A = a - 100 what will be the value of A and will there be any error becoz of the Negative value

3 Answers   CTS,


IDENTIFICATION DIVISION. PROGRAM-ID. MOVEPGM. DATA DIVISION. WORKING-STORAGE SECTION. 01 WS-I PIC 9(2). PROCEDURE DIVISION. A1000-MAIN-PARA. PERFORM PARA-X WITH TEST BEFORE UNTIL WS-I= 5 STOP RUN. PARA-X. DISPLAY "BEST2". I m getting error s722,while executing the program, seems getting in loop, can anybody tell me why

3 Answers  


Can we use redefine clause in occurs clause?

10 Answers  


How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB

6 Answers   Polaris,


Can anyone explain me CALL procedure in COBOL.Does it carries similarities like call by reference in C.

1 Answers  


what is the maximum error code in mainframe

2 Answers  


9(2).99 how many bytes take? Why . consider as a byte?

2 Answers  


Without using move verb how to move one variable to another.

5 Answers  


What is SQL Code -904 and -903 in DB2 And how to handle it?

1 Answers   IBM,


what is the advantage of using redefines instead of delaring the variables ?

5 Answers   HCL,


Categories