Move Zeroes to I
move 5 to j
perform para1 varying I from 10 by -2 until I = 0
display j.
para1.
Add 5 to j.
What’ll be the value after execution of display stmt.
A) 35
B) 40
C) 30
D) 25
please explain how?
Answer Posted / suputhru
Gaayathri is right!!!
para1 will be performed only 5 times
J is 5+(5*5) equals 30
correct answer is c) 30
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Which Search verb is equivalent to PERFORM…VARYING?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What are the different rules for performing sort operation?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
how can i see junk values in dclgen or in hostvariable of comp ?
Discuss about changing dataset name in proc.
What are the rules of the move verb?
What are the various section in data division and briefly explain them.
) How do u handle errors in BMS macro?
how do you reference the ksds vsam file formats from cobol programs
Which division and paragraphs are mandatory for a COBOL program?
HOw can I get the negative sign while deduct high value from low value
What is the local-storage section?
How can you get the ksds file records into your cobol program?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..