What is a scope terminator? Give examples.
Answers were Sorted based on User's Feedback
Answer / aji cherian
If.. end-if
Perform .. end-perform
read... end-read
evaluate... end-evaluate etc...
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / vampire
"."
stop-run
exit
end-if
exit
end-evaluate
end-search
end sort
| Is This Answer Correct ? | 1 Yes | 1 No |
How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. stop run. para1: move 10 to a.
If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.
study the following 01 A PIC 99V0 VALUE 5 01 B PIC 9V9 VALUE 6 01 C PIC 99V9 VALUE 2.5 01 D PIC 99 VALUE 3 COMPUTE A ROUNDED B C = A+B*C/D ON SIZE ERROR PERFORM PRINT-ERROR the comments of A.B.C after execution of the above statement are a.A=10 B=0 C=10 b.A=10 B=9.9 C=9.9 c.A=10 B=0 C=9.9 d.A=10 B=6 C=10
Whats the difference between search & search ALL?
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).
Should I use STOP RUN in the sub program??why?
If we use GO BACK instead of STOP RUN in cobol?
What is the linkage section?
Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.
how many divisions are there in cobol
can we read records in a file from botom to top. if possible how can we read
give the examples of strings in cobol