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 do we get current date from system with century in COBOL?
Why occurs can not be used in 01 level ?
In INITIALIZE what is Repalcing Word will do
how to create temporary data set in jcl? what is the use?
3 Answers Cap Gemini, Temenos,
How to convert bunch of words in a line to relvant ASCII values?
plz,could any one tell me? what about EBCDIC in cobol?briefly?
how to display comp3 variables reply soon ?
Can we move X(7) to S9(7) COMP?
We are using the searching a table which is indexed, once the key is found, how can we get the occurance at which the key was found.
77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......
how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?
what is label record is standard or omitted in file description of data division?