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 can you get the ksds file records into your cobol program?
How is sign stored in Packed Decimal fields and Zoned Decimal fields?
) how do u code after getting data?
what is Reentrancy and Quasi-reentrancy?
i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?
how will u code parm parameter and where pls ?
what are the error codes in cobol, db2, cics, vsam , and jcl
can any one give good example for cond 88 level number and for renames pls urgent dudes ?
what is the difference between Plan & package
how to display the dataset information?
9(2).99 how many bytes take? Why . consider as a byte?
waht is inspect verb? where it can be in real time?