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


Please Help Members By Posting Answers For Below Questions

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.

1339


For rewrite, why is it mandatory that file needs to be opened?

824


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

847


how to convert the recors form vsam file to db2 table tru file aid

2975


Write a program to explain size error.

877






Name the divisions, which are available in a cobol program?

914


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9218


) how do u code after getting data?

1769


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1064


What are the different rules for performing sort operation?

939


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 ?

2081


what is amode(24), amode(31), rmode(24) and rmode(any)?

882


Describe the cobol database components?

875


What is redefines clause in COBOL?

1024


In COBOL, what is the different between index and subscript?

934