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 |
what is the difference between Normal vaiable and comp variable.
what is meant by binary search?
What are options have been removed in COBOL 11?
01 a pic s9(5) value '-12345' how it will be stored
If i got a job on mainframe technology, will i have a bright future?. Some people are discouraging me. Let me know, is it true? Please bring back me from the confusion.
if you give cylinder(1,1)how many cylinders it will be allocate?
What are the ways you can generate a copybook?
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
I want ALL ERROR codes in VSAM
3 Answers American Express, TCS,
In an EVALUTE statement is the order of the WHEN clauses significant?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Which division and paragraphs are mandatory for a COBOL program?