17.08.2013 Views

Data Interfaces

Data Interfaces

Data Interfaces

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Exercises on Chapter 1: Sequential Files<br />

1. Your program name: ZBCF##A1<br />

Your group number: ##<br />

Your directory name: /tmp<br />

Your file name: BOOK##<br />

Name of the include report: RSFFF01L.<br />

Task:<br />

Create a file with flight/reservation data. The data records are<br />

to be entered by the user individually.<br />

Programming hints:<br />

a) Use the include report specified above for the data<br />

structure.<br />

The structure contains the airline carrier ID, flight ID, flight<br />

date, booking ID and customer ID (CARRID,CONNID,<br />

FLDATE, BOOKID, CUSTOMID).<br />

b) Using the PARAMETERS statement, define a selection<br />

screen on which the flight/reservation data can be entered.<br />

c) Transfer the data record in text mode.<br />

d) A new data record is to be added to the file whenever the<br />

report is started.<br />

2. Your program name: ZBCF##A2<br />

Your group number: ##<br />

Your directory name: /tmp<br />

Your file name: BOOK##<br />

Name of the include report: RSFFF01L<br />

Task:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!