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 |
is it possible to pass an SQL query inside a jcl which is inside a cobol program?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What is inspect in cobol ?
01 a pic s9(5) value -12345, if we disply a , the sign will overpunched with last digit but i need to get the miuns sign in the result?
How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. stop run. para1: move 10 to a.
can we write paragraph in area B .....
how do you define single dimensional array and multidimensional array in your cobol?
What is difference between static and dynamic call in cobol?
A paragraph PARA-X is to be executed when none of the data names A, B and C have value of 1. Which of the following will achieve this ? (a) IF A NOT = 1 OR B NOT = 1 OR C NOT = 1 PERFORM PARA-X (B) IF NOT A= 1 AND B= 1 AND C = 1 PERFORM PARA-X (C) IF A NOT =1 IF NOT B = 1 OR C= 1 PERFORM PARA-X (C) IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X
What is amode(31)
Write the code implementing the perform … varying.
suppose a cobol programme A calling programme B,C and D. If C undergoes some change what if A,B,C,D need to be recompiled or only C nee to be recompliled.