Question: 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.
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
Get step-by-step solutions from verified subject matter experts
