in cobol perform stmt whether it first checks the condition
or not
Answers were Sorted based on User's Feedback
Answer / pradeep reddy
in cobol perform statement first checks the
condition ,condition is false then checks the statement ,
condition is true control goes outside
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / srinivasa yadav
CONDITION IS TESTED FIRST, IF THE CONDITION IS FALSE THE
CONTROL WILL GO TO THE BODY OF LOOP.
IF THE CONDITION IS TRUE THE CONTROL WILL COME'S OUT FROM
THE BODY OF THE LOOP.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / deepa
If TEST BEFORE option is used the condition is checked
first.
If TEST AFTER option is used the condition is checked later.
Default is TEST BEFORE
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sruthi
it will check condition frist if the condtion is false
contrl goes to body of the loop, if the condtion is true
contrl will goes to end perform
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / manivannan m
In line perform is not checks the condition first.
Regards,
Manivannan M
Note: Ples correct it, if it is wrong
Is This Answer Correct ? | 0 Yes | 2 No |
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
i have a variable block which is used in my cobol program as input file having records of 4080 after compilation while runing the program im getiing file attribut mismatch and it is saying tht the record length of the file is 4084 can any one knw the answer how to reslove it ?
what is difference between the sysabend and userabend?
waht is inspect verb? where it can be in real time?
after udatingg first 110 rows, my job abends. now how do i change my cobol program so that when i restart the Job it will start updating from 111th row ( i.e in next run I di=ont want to update those 110 rows which are already been updated in the first run before job abend)
When is inspect verb is used in cobol?
What is the use of LINKAGE SECTION?
Difference between ps, esds
can we redefine 77 level item is it possible
can u plz expain me how to declare dynamic array? what is the meaning of depending on clause in dynamic array?
How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the field which caused that how do u know the record which caused that if it is in production env? (dumb) Ok let us assume that we got to know that 100th record caused that and I wanted to skip only 100th record from the file and process from 101th. How to do that in JCL using SORT? (tried with STOPAFT but ended up dumb when he said smthing else is ther)
What is cobol?