what is the difference between perform varying and perform
until

Answers were Sorted based on User's Feedback



what is the difference between perform varying and perform until..

Answer / santhosh vayathuri

perform varying is like for statement in cobol we wil be
assign and increment and check the condition in a same
statement but perform until is like while statement in c
here we wil check upto the condition but we wil not
initialize and increment the value

Is This Answer Correct ?    11 Yes 1 No

what is the difference between perform varying and perform until..

Answer / sk.abdul basith

perform until:-it is used to excute paragraph logic
multiple tims based on condition.

perform varying:- it is used to change conditional variable
values with in a perform

Is This Answer Correct ?    2 Yes 1 No

what is the difference between perform varying and perform until..

Answer / ssampath

Perform until will step through automatically used in one
dimensional table and a perform varying will calculate
index for two dimensional table

Is This Answer Correct ?    1 Yes 1 No

what is the difference between perform varying and perform until..

Answer / 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

More COBOL Interview Questions

How to execute a set of JCL statements from a COBOL program?

2 Answers   Patni, Syntel,


Define static linking and dynamic linking.

0 Answers  


what are the error codes in cobol, db2, cics, vsam , and jcl

2 Answers   TetraSoft,


. How do we cast a variable in COBOL

1 Answers   HSBC,


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

0 Answers  






How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?

1 Answers  


What is rmode(24)

0 Answers  


What is an index for tables?

2 Answers  


how do you reference the fixed unblock file formats from cobol programs

0 Answers  


If we use GO BACK instead of STOP RUN in cobol?

1 Answers   Temenos,


If we put three reads in COBOL in the same para one after the other, to read a PS file,will it read the same record thrice or it will read three records sequentially? For example : Input File 01 02 03 Para 900 Read infile Display Infile rec Read infile Display infile rec Read infile Display infile rec. What will be the output?

2 Answers  


What is level 66 used for ?

3 Answers   TCS,


Categories