Download the SeqRead.Cbl program and save it to the WorkArea directory on drive D:.
Download the data file Students.Dat and save it to the same place.
Load SeqRead.Cbl into the NetExpress environment.
Compile the program.
Set a breakpoint at the first statement in the Procedure Division (move the
cursor over the statement, right-click and select Set Breakpoint from the menu
which appears).
Use the Animator to step through the program.
Assign the variables StudentDetails, StudentName, Initials, DateOfBirth and MOBirth to the watch list (Right-click on the variable, select Examine from menu and then Add to list from dialogue box).
As the program runs attempt to answer the following questions:-
The student record consists of the following items;
|
|
|
|
Student Id |
|
|
|
Student Name |
|
|
|
Surname |
|
|
|
Initials |
|
|
|
DateOfBirth |
|
|
|
Year |
|
|
|
Month |
|
|
|
Day |
|
|
|
Course Code |
|
|
|
Gender |
|
|
|
MS. COUGHLAN DOB = 10-08-1985
SR. SMITH DOB = 01-28-1989
JM. Ryan DOB = 09-25-1986
etc.
![]() |
![]() |
![]() |
|