what is qualification on occurs clause?

Answers were Sorted based on User's Feedback



what is qualification on occurs clause?..

Answer / kanika

Occurs clause is used in case of table ,when one number is
used many times as in case of array.

Is This Answer Correct ?    4 Yes 0 No

what is qualification on occurs clause?..

Answer / reshma

If a data-name with the occurs clause requires any
qualification by its higher level, the subscripts to be
written after the last qualified name. For ex,
01 INCOME-TAX-RATE
02 TAX-RATE PIC 99 OCCURS 10 TIMES.
if TAX-RATE should be qualified, it must appear as TAX-RATE
OF INCOME-TAX-RATE(I) and not as TAX-RATE(I) OF INCOME-TAX-
RATE

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More COBOL Interview Questions

What is the difference between Structured COBOL Programming and Object Oriented COBOL ?

1 Answers  


01 a pic s9(5) value -12345, if we disply a , the sign will overpunched with last digit but i need to get the miuns sign in the result?

7 Answers  


when iam reading a flat file which has 100 records through cobol program when iam reading 50th records it gets abends .. so when i run the program again it should read from 50th record .where it got abened ? how it is possible

1 Answers   Patni,


I am getting S00F abend when i try to compare two variable of different pic class,one variable is of 9(09) and another is S9(09) comp-3. First i moved the data from S9(09) comp-3 to 9(09), but no luck. So i tried to move the data from S9(09) comp-3 to X (09) and move to 9(09). I am getting same error message, Please help me to find solution for this ptoblem. ERROR MESSAGE - "The system or user abend S00F R=NULL was issued."

1 Answers  


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

0 Answers   Cap Gemini,






If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??

4 Answers   Accenture,


I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?

3 Answers  


How does IDMS insure data integrity?

1 Answers  


if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?

3 Answers  


How can you declare the file ?

1 Answers   Wipro,


COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'

8 Answers   Barclays, IBM,


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

2 Answers   Hewitt,


Categories