I found this site from a search on Cobol and SQL. Not sure if anyone here can help me. I do hope so.
I need some detailed help, if your up to the challenge please respond. I don't think this is very difficult but I am new to this.
I have an EMPLOYEE database with and EMPLOYEE table containing the following fields:
(I am attempting to use NET EXPRESS to create a .cpy file)
I am looking at some help (in all aspects of this program)
Code a program that retrieves records from and Employee table in the Employee database. Records are to be retrieved by either EMPID or Last Name.
Since there is the possiblity of multiple records containing the same last name, I would like to use a cursor.
If there are multiple records for a last name, display all the names (last, first, and middle initial) on the screen in numbered rows and let the user select the employee by entering the row number.
(Do not do this if only one record is retrieved)
Display all the information for the selected employee on the output screen.
Design an output screen that is plane jane and easy to read.
To test the program create an EMPLOYEE database with an EMPLOYEE table containing the following fields:
EMPID TEXT(6)
FNAME TEXT(12)
MI TEXT(1)
LNAME TEXT(15)
BDATE TEXT(6)
HIREDATE TEXT(6)
DEPARTMENT TEXT(3)
SALARY DESIMAL (2 DECIMALS)
The host variable for the SALARY field should have a PIC of
S9(5)v99 COMP-3.
I am not going to lie, this is for a class that I am in. I ended up having to travel for work and missed two class periods and our book does not provide much of any assistance.
(The name of the book is DB2 for the COBOL Programmer)