You are on page 1of 1

1.

For Hands-on 5 & 6, here are the following programs and input data to produce the
index files:

CREATEF.CBL - create the input file CBLHO6I1.DAT & CBLHO6I1.IDX


VIEWF.CBL - view the file CBLHO6I1.DAT
STUDIN.DAT - input data to create the index files
CBLHO5I1.DAT - input transaction file for hands-on 5

Compile first the CREATEF and VIEWF programs using the batch file CALLIDX.
These two programs are used create and view the contents of the index file
(CBLHO6I1.DAT) used as input and output for hands-on 6. Since you will be
updating the index files you may need to re-create a new index file after every test run
which is taken from STUDIN.DAT file.

2. In hands-on 5, you will be creating a called program named “CBLDATEX”. This is


just a validation program for you parameter date. You may use the validation logic
from your previous hands-on to validate an input date. Just remember that you
should pass parameters between the main program and the called program.

3. If your wondering where “CBLMODA”, “CBLMODB”, and “CBLMODC” is


created, these calls are found in the program for hands-on 6. Remember that for
hands-on 6 you will only have one program. However you will be using the ENTRY
statement for execute the alternate entry point for hands-on 6. Please refer to the
CALL verb handout for more details.

You might also like