How many times the loop runs here
01 a pic 9(2) value 1.
perform para1 until a=10
move 1 to a.
stop run.
para1:
move 10 to a.
Answers were Sorted based on User's Feedback
Answer / priyanka
Para1 would be executed 1 time. after 1st time the value of
a is 10 and it comes out of loop.
it move 1 to a and stop execution.
| Is This Answer Correct ? | 23 Yes | 0 No |
Answer / vikas
Just once. The 'move 1 to a' is not in the para1. So its is NOT infinite loop.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / harish
It depends on two coditions with PERFORM WITH TEST BEFORE/AFTER.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vinod
it dirctly move 10 to a when perform para1 until a=10
after that it moves to the para the condition is checked
and pass the a value to 10.
again the perform is check the condion its true move the
value to 1.agin it passes the same so it is a infinite loop.
| Is This Answer Correct ? | 3 Yes | 23 No |
db2 variable decimal(15,2) what is the equalent size of cobol variable
Difference between array and sub-script ?
I try to use some column names in my cobol progorm but these column not in db2 table ..when do i get error ..while bind time or runtime?
i have variable record in the 5th, i want to sort from 5th filed ? how ?
Write a program to concert an Indexed file into Sequential file?
COMP-3 field occupy ?
how to access vsam files in cobol and how to differentiate that this is ESDS file
study the data discriptions and answer the questions given below i)01 ORDER RECORD 05 OUT-HEADER PIC X(50) 05 ITEM-COUNT PIC 99 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING ON ITEM-COUNT ii)01 NAME-AND-ADDRESS 05 N-AND-A-LINE OCCURES 5 05 LINE-LENGTH PIC P9 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON LINE-LENGTH iii)01 SALES-LIST 05 SALESMAN-COUNT PIC 99 05 SALES PIC 9(6) OCCURS 1 TO 100 DEPENDING ON SALESMAN-COUNT iv)01 ORDER-RECORD 05 NO-OF-BRANDS PIC 99 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON NO-OF-BRANDS which of the following is true? a.i) and iii) are valid b.i) and iv) are valid c.i) and iii) are not valid d.all are valid
I hv ten records in ps file and i hv say some 15 records in vsam file .i hv empno and age in ps file n empno,empname,dept n desig in vsam file. i hv 2 read the ps file n check wid matching empno in vsam file and then insert all fields from ps and vsam into db2 table....plz help in writin the procedure division
write a program to eliminate duplicate records in a input file and send them to output file.THIS IS IGATE RECENT QUESTIONN.....JUST 1 WEEK BACKKKK...
what is the difference between Normal vaiable and comp variable.
Can JUSTIFIED be used for all the data types?