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 |
There is a production file which has millions of records in it.The program that uses it ends up with an SOC7 abend.It is sure that the abend is due to some invalid data in the file.Is there any way to debugg the SOC7 abend with out giving displays? I need the record which is cause for the abend.
i have a sequencial file contains multiple records, i want to extract one row which contains various fields like order number,date,warehouse,.ect.. in to the another file by accepting the order number from jcl. how can i do it. pls help me..
what is amode(24), amode(31), rmode(24) and rmode(any)?
In COBOL programming, what is PERFORM? What is VARYING?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
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.
If my program receives input feed from program in other system.. if the receiving field size is less than the sending field.. what abend will be happening.
What is amode(24)?
How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer Please Reply .....Thanks From Shree
Scenario: I have 3 Input Files.Read the first i/p file and depending on certain business logic, I want to read wither i/p file-2 or i/p file-3.Now, depending on certain business logic applied to the record read from either file-2 or file-3, I decide to write them to either output file-2 or output file-2. Question: How many job steps are necessary to implement a solution for the above.
Discuss about changing dataset name in proc.
how we rectify soc7 and soc4 errors in project?