Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that will read from a data file of employee records. You should create an appropriate data file using the format of data

Write a program that will read from a data file of employee records.

You should create an appropriate data file using the format of data specified from Question #3 from the midterm exam. For the data set, I recommend a fixed block (FB) format with record length of 80.

The program should read the entire file and produce an output report including information for each employee. The output should simply be DISPLAYed such that we can view the output in SDSF. The specific format you use is up to you, but it should be neat and readable.

You may choose to use a subroutine to generate the output for each employee, BUT this is absolutely not required. We will talk about subroutines very soon.

Submit the two outputs generated in SDSF once your program compiles and runs successfully.

image text in transcribed
3. Define a record in WORKING-STORAGE to store the following information for an employee: - employee id ( 8 digit number) - name first and last name should be independently accessible allow 14 characters for first name allow 20 characters for last name - position (12 characters) - start date year, month, and day should be independently accessible - current salary allow 6-figure salary (over $100K ) incl. dollars and cents - total career earnings use appropriate PIC clause based possible career earnings You do not need to write a complete program. Just give the requested code you would find in WORKING-STORAGE

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_2

Step: 3

blur-text-image_3

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

What is the effect of word war second?

Answered: 1 week ago