Back to Browse

COBOL EVALUATE Statement | Evaluate statement in COBOL | Evaluate in COBOL | COBOL Evaluate Tutorial

4.3K views
Jul 9, 2020
8:00

Master the COBOL EVALUATE Statement in this complete tutorial. EVALUATE is the cleaner, more readable alternative to nested IF-ELSE in COBOL — covering WHEN TRUE, WHEN ALSO, WHEN THRU, and WHEN OTHER with practical examples. What you'll learn: 0:00 Welcome 0:13 COBOL Tutorial Agenda 0:46 COBOL EVALUATE Statement 2:00 EVALUATE WHEN with TRUE Example 3:33 EVALUATE WHEN with ALSO Example 4:31 EVALUATE WHEN with Multiple Conditions 5:45 EVALUATE WHEN with THRU Example 7:02 End EVALUATE Syntax: EVALUATE TRUE WHEN Condition-1 Statement WHEN OTHER Statement END-EVALUATE EVALUATE Example: EVALUATE TRUE WHEN END-OF-FILE PERFORM A00-WRT-TRL-REC WHEN NOT-END-OF-FILE PERFORM B00-WRT-DTL-REC PERFORM B10-RED-NXT-REC WHEN OTHER PERFORM Z00-CLL-ERR END-EVALUATE Four EVALUATE variants covered: ► EVALUATE TRUE — single condition check ► EVALUATE WHEN ALSO — multiple simultaneous conditions ► EVALUATE WHEN THRU — range of values ► WHEN OTHER — default fallback when no condition matches Key advantage: EVALUATE automatically exits after the first matching WHEN — no BREAK statement needed unlike other languages. ► COBOL Full Course: https://youtube.com/live/nKLF-WmUlmU ► Mainframe Interview Q&A: https://youtu.be/7tz1QkEXdco ►Subscribe to Topictrick & Don't forget to press THE BELL ICON to never miss any updates. ◄ Also, Please visit below mention the link to stay connected with Topictrick on - ► Offical Website : www.topictrick.com ► Youtube : topictrick ► Follow us on Twitter : https://twitter.com/topictrick ► Facebook : https://www.facebook.com/topictrick/ ► Linkedin : https://www.linkedin.com/showcase/top... ► Reddit : https://www.reddit.com/r/topictrick/ ► Mainframe Blog : https://mainframe-forum.blogspot.com ► COBOL Evaluate Verb : https://bit.ly/2SvF2e7 Thank you for your support. Topictrick™ #cobol #coboltutorial #evaluate #mainframe #cobolprogramming #mainframetutorial #topictrick

Download

1 formats

Video Formats

360pmp412.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

COBOL EVALUATE Statement | Evaluate statement in COBOL | Evaluate in COBOL | COBOL Evaluate Tutorial | NatokHD