Simple solution is You need to have 2 datafiles... 1 for Managers and 1 for Managers and Employees.. 1st data file should read ManagerA ManagerB ManagerC 2nd datafile should read Manager A - Employee 1 Manager A - Employee 2 Manager A - Employee 3 Manager B - Employee 4 Manager B - Employee 5 Manager B - Employee 6 Next , call and fetch login id as sUser from tinit to ensure 1 time login for each Manager.. once in TMain , call and fetch sManager and sEmployee from 2nd datafile.. Next Check if sManager = sUser then approve employee; fetch next row; else fetch next row; end; it would be smoother if Number of Users = number of unique managers... Let me know , if any questions.....
↧