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 meaning by design document? who can repared for this?
In COBOL, what is the different between index and subscript?
0 Answers TryTechnicals Pvt Ltd,
if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?
Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.
Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a
how you will define variables length in cobol.
what is the diff b/w select stsmt and cursor ?
why occurs clause not mentioned in 01 level
6 Answers HCL, NIIT, TCS, Tesco,
IF I mention stop run in CICS what happens?
What is the difference between comp and comp-3?
How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp
have in 100 records in a file i want to move only matched records to one output_file1 and nonmathed records are moved to another output_file2 ... any one can provide logic code