what is the difference between perform varying and perform
until
Answer Posted / vaneesh
Perform Varying:- Its a performing of loop using a working
storage variable having a predefined value and its
incremental or decremental value with each execution.
For Example
PERFORM PARA-A VARYING WS-A FROM 1 BY 1.
PERFORM UNTILL:- It is execution of a loop until a certain
condition is met. Please note that condition is checked
before the execution.
PERFORAM PARA-A UNTILL WS-A > 20.
Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
For rewrite, why is it mandatory that file needs to be opened?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
how to convert the recors form vsam file to db2 table tru file aid
Write a program to explain size error.
Name the divisions, which are available in a cobol program?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
) how do u code after getting data?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What are the different rules for performing sort operation?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
what is amode(24), amode(31), rmode(24) and rmode(any)?
Describe the cobol database components?
What is redefines clause in COBOL?
In COBOL, what is the different between index and subscript?