Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

COBOL Programming CODE: IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 WS-A PIC 9 VALUE 0. 01 WS-B PIC 9 VALUE 0. 01 WS-C

COBOL Programming

image text in transcribed

CODE:

IDENTIFICATION DIVISION. PROGRAM-ID. HELLO.

DATA DIVISION. WORKING-STORAGE SECTION. 01 WS-A PIC 9 VALUE 0. 01 WS-B PIC 9 VALUE 0. 01 WS-C PIC 9 VALUE 0.

PROCEDURE DIVISION. A-PARA. PERFORM B-PARA VARYING WS-C FROM 9 BY -1 UNTIL WS-C=0 AFTER WS-B FROM 9 BY -1 UNTIL WS-B=0 AFTER WS-A FROM 9 BY -1 UNTIL WS-A=0 PERFORM C-PARA VARYING WS-C FROM 9 BY -1 UNTIL WS-C=0 AFTER WS-B FROM 9 BY -1 UNTIL WS-B=0 PERFORM D-PARA VARYING WS-C FROM 9 BY -1 UNTIL WS-C=0 DISPLAY '0:0:0'. STOP RUN. B-PARA. DISPLAY WS-A ':' WS-B ':' WS-C. C-PARA. DISPLAY '0:' WS-B ':' WS-C. DISPLAY WS-B ':0:' WS-C. DISPLAY WS-B ':' WS-C ':0'.

D-PARA. DISPLAY '0:0:' WS-C. DISPLAY WS-C ':0:0'. DISPLAY '0:' WS-C ':0'.

Create a COBOL program to write all the outputs from the code provided, that meet the following constraint , to a file called SELECTED-OUTPUT D3 + D2 + D 1-10

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

When is it appropriate to use a root cause analysis

Answered: 1 week ago