If A>B
next sentence
end-if
display 1
display 2.
display 3.
If a>b, it will display only 3.(the next sentence,
ie., after fullstop/period)
____________________________________
if a>b
continue
end-if
display 1
display 2.
display 3.
If a>b, it Will display 1 2 3 (the next statement)
____________________________________
if a>b
continue
display 1
end-if
display 2
display 3.
display 4.
If a>b, Will it display 2 3 4 (or) 1 2 3 4 ?
Answer Posted / muttaiah
Really, Did someone execute this code before posting your
answers..
If a novice goes through this chat he will get confused
like which answer is correct
The asnwer is 2 3 4 why because whenever control encounters
continue it will start executing the stmt only after scope
terminator which is end-if in this case.
so 2 3 4 is the answer i have executed the code also.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
When is inspect verb is used in cobol?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
How can you get the ksds file records into your cobol program?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
Write a program to enter and display the names of students in a class using the occurs clause.
Write a program that uses move corresponding.
What are declaratives and what are their uses in cobol?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
) How do u handle errors in BMS macro?
What are the different data types in cobol?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad