what is the difference between perform varying and perform
until
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
How to execute a set of JCL statements from a COBOL program?
Define static linking and dynamic linking.
what are the error codes in cobol, db2, cics, vsam , and jcl
. How do we cast a variable in COBOL
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?
What is rmode(24)
What is an index for tables?
how do you reference the fixed unblock file formats from cobol programs
If we use GO BACK instead of STOP RUN in cobol?
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?
What is level 66 used for ?