how will u find out 3rd week's 2nd day using occurs ?

Answers were Sorted based on User's Feedback



how will u find out 3rd week's 2nd day using occurs ?..

Answer / ginni

Sweta you cant use WS-TEMP because only the field_name in
the last occurs clause or an element in a level below it
can be used to refer to the table.

So it will be WS-DAY (3,2).

Is This Answer Correct ?    22 Yes 1 No

how will u find out 3rd week's 2nd day using occurs ?..

Answer / chinni

yes ginni is correct

Is This Answer Correct ?    6 Yes 1 No

how will u find out 3rd week's 2nd day using occurs ?..

Answer / shweta

01 WS-TEMP VALUE ZEROS.
03 WS-WEEK OCCURS 5 TIMES
05 WS-DAY PIC 9 OCCURS 7 TIMES


THE THIRD WEEK AND 2ND DAY CAN BE FOUND BY WS-TEMP(3,2)

Is This Answer Correct ?    3 Yes 9 No

Post New Answer

More COBOL Interview Questions

Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?

1 Answers  


if we have a 10 steps how to override the 4th step in jcl?

2 Answers   Hewitt,


how to display comp3 variables reply soon ?

4 Answers   Patni,


is it possible to rename 01 level?

4 Answers  


How to delete a front spaces in a data-name/variable in cobol Example:- 01 data-name-1 PIC x(20) value " cobol language". 01 data-name-2 PIC x(20). MOVE data-name-1 to data-name-2. would like the value of data-name-2 is "cobol language".

3 Answers  






i want a program using by if, evaluate , string, unstring, perform, occurs?

1 Answers  


SIGN TRAILING SEPARATE field occupy ?

3 Answers  


how many maximum no of variables can be declared in linkage section ?

2 Answers   HCL,


Can we put move statement in COBOL copybook

3 Answers   Global Logic,


What compiler option would you use for dynamic linking?

2 Answers  


Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.

3 Answers   iGate,


what happens if we wont give timestamp in precompilation process ?

4 Answers   Covansys,


Categories