-
Notifications
You must be signed in to change notification settings - Fork 0
/
hrms.cbl
1571 lines (1480 loc) · 57 KB
/
hrms.cbl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
IDENTIFICATION DIVISION.
PROGRAM-ID. MAINHRMS.
DATA DIVISION.
WORKING-STORAGE SECTION.
77 CHOICE PIC 9.
PROCEDURE DIVISION.
MAIN-PARA.
DISPLAY " " WITH BLANK SCREEN.
DISPLAY "*************************" LINE 3 COL 15.
DISPLAY "HUMAN RESOURCE MANAGEMENT SYSTEM"LINE 5 COL 15.
DISPLAY "*************************" LINE 7 COL 15.
DISPLAY "1. HRMS WRITE" LINE 10 COL 25.
DISPLAY "2. HRMS READ" LINE 12 COL 25.
DISPLAY "3. LIST BRANCH FILE" LINE 14 COL 25.
DISPLAY "4. EXIT" LINE 16 COL 25.
DISPLAY "ENTER YOUR CHOICE :" LINE 18 COL 25.
ACCEPT CHOICE LINE 18 COL 46.
IF CHOICE = 1
CALL "EMPWRITE"
CANCEL "EMPWRITE"
GO TO MAIN-PARA
ELSE
IF CHOICE = 2
CALL "EMPREAD"
CANCEL "EMPREAD"
GO TO MAIN-PARA
ELSE
IF CHOICE = 3
CALL "EMPBRANCHLIST"
CANCEL "EMPBRANCHLIST"
GO TO MAIN-PARA
ELSE
STOP RUN.
IDENTIFICATION DIVISION.
PROGRAM-ID. EMPREAD.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT EMPFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS EEMPID
FILE STATUS IS FSO.
SELECT LEAVEFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS LEMPID
FILE STATUS IS FSL.
SELECT BRANCHFILE ASSIGN TO DISK
ORGANIZATION IS SEQUENTIAL
ACCESS MODE IS SEQUENTIAL
RECORD KEY IS BBRID
FILE STATUS IS FSB.
SELECT DESIGNATIONFILE ASSIGN TO DISK
ORGANIZATION IS SEQUENTIAL
ACCESS MODE IS SEQUENTIAL
FILE STATUS IS FSDES.
SELECT DEPARTMENTFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS DEPCODE
FILE STATUS IS FSDEP.
SELECT REVISIONFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS RREVID
ALTERNATE RECORD KEY IS REMPID
FILE STATUS IS FSR.
SELECT PAYMENTFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS PEMPID
FILE STATUS IS FSP.
SELECT CONFIRMATIONFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS CCONID
ALTERNATE RECORD KEY IS CEMPID
FILE STATUS IS FSC.
SELECT GRADEFILE ASSIGN TO DISK
ORGANIZATION IS SEQUENTIAL
ACCESS MODE IS SEQUENTIAL
FILE STATUS IS FSG.
SELECT TRANSFERFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS TTRFID
FILE STATUS IS FST.
SELECT EMPPERSONALFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS EPEMPID
FILE STATUS IS FSEP.
DATA DIVISION.
FILE SECTION.
FD EMPFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "EMP.DAT".
01 EMPREC.
02 EEMPID PIC X(6).
02 EEMPNAME PIC X(25).
02 EEMPADDR PIC X(30).
02 EPHONE PIC X(10).
02 EDOJ PIC X(10).
02 EDIP PIC X(10).
02 EUG PIC X(4).
02 EPG PIC X(4).
02 EPROFQ PIC X(4).
02 ESKILL PIC X(10).
02 EGRDNO PIC 99.
02 EBRNID PIC X(6).
02 EDESID PIC X(6).
FD LEAVEFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "LEAVE.DAT".
01 LEAVEREC.
02 LEMPID PIC X(6).
02 LFMDATE PIC X(10).
02 LTODATE PIC X(10).
02 LLEVCAT PIC X(3).
FD BRANCHFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "BRANCH.DAT".
01 BRANCHREC.
02 BBRID PIC X(6).
02 BBRNAME PIC X(15).
02 BBRADD PIC X(30).
02 BBRPH PIC X(10).
02 BEMAIL PIC X(20).
02 BMGRNAME PIC X(25).
FD DESIGNATIONFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "DESIG.DAT".
01 DESIGNATIONREC.
02 DESID PIC X(6).
02 DESIGN PIC X(15).
02 DESHRT PIC X(4).
FD DEPARTMENTFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "DEPART.DAT".
01 DEPARTMENTREC.
02 DEPCODE PIC X(6).
02 DEPNAME PIC X(20).
FD REVISIONFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "REVISION.DAT".
01 REVISIONREC.
02 RREVID PIC X(6).
02 REMPID PIC X(6).
02 RDESCODE PIC X(6).
02 RBASIC PIC 9(6)V99.
02 RHRA PIC 9(6)V99.
02 RDPA PIC 9(6)V99.
02 RPPA PIC 9(6)V99.
02 REDUA PIC 9(6)V99.
02 RTECHJR PIC 9(6)V99.
02 RLUNCHA PIC 9(6)V99.
02 RCONVEY PIC 9(6)V99.
02 RBUSATR PIC 9(6)V99.
02 RLTA PIC 9(6)V99.
02 RPF PIC 9(6)V99.
02 RESI PIC 9(6)V99.
02 RREVDATE PIC X(10).
FD PAYMENTFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "PAYMENT.DAT".
01 PAYMENTREC.
02 PEMPID PIC X(6).
02 PBASIC PIC 9(6)V99.
02 PDA PIC 9(6)V99.
02 PCCA PIC 9(6)V99.
02 PHRA PIC 9(6)V99.
02 PDPA PIC 9(6)V99.
02 PPPA PIC 9(6)V99.
02 PEDUA PIC 9(6)V99.
02 PTECHJR PIC 9(6)V99.
02 PLUNCHA PIC 9(6)V99.
02 PCONVEY PIC 9(6)V99.
02 PBUSATR PIC 9(6)V99.
02 PLTA PIC 9(6)V99.
02 PPF PIC 9(6)V99.
02 PESI PIC 9(6)V99.
02 PGRTY PIC 9(6)V99.
02 PPTAX PIC 9(6)V99.
02 PITAX PIC 9(6)V99.
02 PLOAN PIC 9(8)V99.
02 PLOANDA PIC 9(8)V99.
02 POTHERD PIC 9(6)V99.
02 PPERINC PIC 9(6)V99.
02 PMEDI PIC 9(6)V99.
02 PBOOK PIC 9(6)V99.
02 PENTER PIC 9(6)V99.
02 PTPH PIC 9(6)V99.
02 PHOUSE PIC 9(6)V99.
02 PVEHMAN PIC 9(6)V99.
02 PCREDIT PIC 9(6)V99.
02 PCLUB PIC 9(6)V99.
02 PCL PIC 99.
02 PSL PIC 99.
02 PPL PIC 99.
02 PLLOP PIC 999.
02 POTHERL PIC 999.
FD CONFIRMATIONFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "CONFIRM.DAT".
01 CONFIRMATIONREC.
02 CCONID PIC X(6).
02 CEMPID PIC X(6).
02 CCDATE PIC X(6).
FD GRADEFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "GRADE.DAT".
01 GRADEREC.
02 GGRADE PIC 99.
02 GDESIGN PIC X(25).
FD TRANSFERFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "TRANSFER.DAT".
01 TRANSFERREC.
02 TTRFID PIC X(6).
02 TEMPID PIC X(6).
02 TOBRID PIC X(6).
02 TTRFDT PIC X(10).
FD EMPPERSONALFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "EMPPER.DAT".
01 EMPPERSONALREC.
02 EPEMPID PIC X(6).
02 EPTADD PIC X(30).
02 EPTPH PIC X(10).
02 EPDOB PIC X(10).
02 EPPOB PIC X(10).
02 EPLANG PIC X(15).
02 EPBLOOD PIC X(4).
02 EPWEIGHT PIC 999.
02 EPHEIGHT PIC 999.
02 EPVISION PIC X(15).
02 EPFATHER PIC X(25).
02 EPDOBF PIC X(10).
02 EPMOTHER PIC X(25).
02 EPDOBM PIC X(10).
02 EPSPOUSE PIC X(25).
02 EPCHILD PIC X(25).
02 EPDOBC PIC X(10).
WORKING-STORAGE SECTION.
77 FSO PIC XX.
77 FSL PIC XX.
77 FSB PIC XX.
77 FSDES PIC XX.
77 FSDEP PIC XX.
77 FSR PIC XX.
77 FSP PIC XX.
77 FSC PIC XX.
77 FSG PIC XX.
77 FST PIC XX.
77 FSEP PIC XX.
77 DES PIC X(6).
77 GR PIC 99.
77 CHOICE PIC 99.
77 IID PIC X(6).
77 ENTER PIC X.
PROCEDURE DIVISION.
MAIN-PARA.
DISPLAY " " WITH BLANK SCREEN.
DISPLAY "******************************" LINE 3 COL 10.
DISPLAY " HUMAN RESOURCE MANAGEMENT SYSTEM " LINE 5 COL 10.
DISPLAY "****************************" LINE 7 COL 10.
DISPLAY "01. EMPLOYEE FILE" LINE 11 COL 5.
DISPLAY "02. LEAVE FILE" LINE 12 COL 5.
DISPLAY "03. BRANCH FILE" LINE 13 COL 5.
DISPLAY "04. DESIGNATION FILE" LINE 14 COL 5.
DISPLAY "05. DEPARTMENT FILE" LINE 15 COL 5.
DISPLAY "06. REVISION FILE" LINE 16 COL 5.
DISPLAY "07. PAYMENT FILE" LINE 17 COL 5.
DISPLAY "08. CONFIRMATION FILE" LINE 18 COL 5.
DISPLAY "09. GRADE FILE" LINE 19 COL 5.
DISPLAY "10. TRANSFER FILE" LINE 20 COL 5.
DISPLAY "11. EMPLOYEE PERSONAL FILE" LINE 21 COL 5.
DISPLAY "12. EXIT" LINE 22 COL 5.
DISPLAY "ENTER U R CHOICE :" LINE 23 COL 25.
ACCEPT CHOICE LINE 23 COL 45.
IF CHOICE = 1
GO TO EMP-PARA
ELSE
IF CHOICE = 2
GO TO LEAVE-PARA
ELSE
IF CHOICE = 3
GO TO BRANCH-PARA
ELSE
IF CHOICE = 4
GO TO DESIGNATION-PARA
ELSE
IF CHOICE = 5
GO TO DEPARTMENT-PARA
ELSE
IF CHOICE = 6
GO TO REVISION-PARA
ELSE
IF CHOICE = 7
GO TO PAYMENT-PARA
ELSE
IF CHOICE = 8
GO TO CONFIRMATION-PARA
ELSE
IF CHOICE = 9
GO TO GRADE-PARA
ELSE
IF CHOICE = 10
GO TO TRANSFER-PARA
ELSE
IF CHOICE = 11
GO TO EMPPERSONAL-PARA
ELSE
EXIT PROGRAM.
EMP-PARA.
DISPLAY " " WITH BLANK SCREEN.
OPEN INPUT EMPFILE.
DISPLAY "ENTER CODE :".
ACCEPT EEMPID.
DISPLAY " " WITH BLANK SCREEN.
READ EMPFILE INVALID KEY GO TO ERROR-EMP-PARA.
DISPLAY " CODE :" LINE 1 COL 1.
DISPLAY EEMPID LINE 1 COL 25.
DISPLAY " NAME :" LINE 2 COL 1.
DISPLAY EEMPNAME LINE 2 COL 25.
DISPLAY " ADDRESS :" LINE 3 COL 1.
DISPLAY EEMPADDR LINE 3 COL 25.
DISPLAY " PHONE :" LINE 4 COL 1.
DISPLAY EPHONE LINE 4 COL 25.
DISPLAY " DATE OF JOIN :" LINE 5 COL 1.
DISPLAY EDOJ LINE 5 COL 25.
DISPLAY " DIPLOMA :" LINE 6 COL 1.
DISPLAY EDIP LINE 6 COL 25.
DISPLAY " UG :" LINE 7 COL 1.
DISPLAY EUG LINE 7 COL 25.
DISPLAY " PG :" LINE 8 COL 1.
DISPLAY EPG LINE 8 COL 25.
DISPLAY " PROFESSIONAL QUALITY :" LINE 9 COL 1.
DISPLAY EPROFQ LINE 9 COL 25.
DISPLAY " SKILL SET :" LINE 10 COL 1.
DISPLAY ESKILL LINE 10 COL 25.
DISPLAY " GRADE NUMBER :" LINE 11 COL 1.
DISPLAY EGRDNO LINE 11 COL 25.
DISPLAY " BRANCH CODE :" LINE 12 COL 1.
DISPLAY EBRNID LINE 12 COL 25.
DISPLAY " DESIGNATION CODE :" LINE 13 COL 1.
DISPLAY EDESID LINE 13 COL 25.
CLOSE EMPFILE.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
LEAVE-PARA.
DISPLAY " " WITH BLANK SCREEN.
OPEN INPUT LEAVEFILE.
DISPLAY "ENTER CODE :".
ACCEPT LEMPID.
DISPLAY " " WITH BLANK SCREEN.
READ LEAVEFILE INVALID KEY GO TO ERROR-LEAVE-PARA.
DISPLAY " CODE :" LINE 1 COL 1.
DISPLAY LEMPID LINE 1 COL 20.
DISPLAY " DATE :" LINE 2 COL 1.
DISPLAY LFMDATE LINE 2 COL 20.
DISPLAY " DATE :" LINE 3 COL 1.
DISPLAY LTODATE LINE 3 COL 20.
DISPLAY " LEAVE CATEGORY :" LINE 4 COL 1.
DISPLAY LLEVCAT LINE 4 COL 20.
CLOSE LEAVEFILE.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
BRANCH-PARA.
DISPLAY " " WITH BLANK SCREEN.
OPEN INPUT BRANCHFILE.
DISPLAY " BRANCH CODE :".
ACCEPT IID.
DISPLAY " " WITH BLANK SCREEN.
PERFORM BRANCH-READ-IT UNTIL FSB = 10.
BRANCH-READ-IT.
READ BRANCHFILE RECORD.
IF BBRID = IID
DISPLAY " BRANCH CODE :" LINE 1 COL 1.
DISPLAY " BRANCH CODE :" LINE 1 COL 1.
DISPLAY IID LINE 1 COL 20.
DISPLAY " BRANCH NAME :" LINE 2 COL 1.
DISPLAY BBRNAME LINE 2 COL 20.
DISPLAY " BRANCH ADDRESS :" LINE 3 COL 1.
DISPLAY BBRADD LINE 3 COL 20.
DISPLAY " PHONE :" LINE 4 COL 1.
DISPLAY BBRPH LINE 4 COL 20.
DISPLAY " E-MAIL :" LINE 5 COL 1.
DISPLAY BEMAIL LINE 5 COL 20.
DISPLAY " MANAGER NAME :" LINE 6 COL 1.
DISPLAY BMGRNAME LINE 6 COL 20.
BRANCH-EXIT-P.
CLOSE BRANCHFILE.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
DESIGNATION-PARA.
DISPLAY " " WITH BLANK SCREEN.
OPEN INPUT DESIGNATIONFILE.
DISPLAY "ENTER THE DESIGNATION CODE :".
ACCEPT DES.
DISPLAY " " WITH BLANK SCREEN.
PERFORM DES-READ-PARA UNTIL FSDES = 10.
DES-READ-PARA.
READ DESIGNATIONFILE AT END GO TO DES-EXIT-PARA.
IF DESID = DES
DISPLAY " DESIGNATION CODE :" LINE 1 COL 1.
DISPLAY DESID LINE 1 COL 25.
DISPLAY " DESIGNATION :" LINE 2 COL 1.
DISPLAY DESIGN LINE 2 COL 25.
DISPLAY " DESIGNATION IN SHORT :" LINE 3 COL 1.
DISPLAY DESHRT LINE 3 COL 25.
DES-EXIT-PARA.
CLOSE DESIGNATIONFILE.
DISPLAY ' '.
DISPLAY ' '.
DISPLAY "PRESS ENTER TO RETURN TO HRMS READ MENU".
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
DEPARTMENT-PARA.
DISPLAY " " WITH BLANK SCREEN.
OPEN INPUT DEPARTMENTFILE.
DISPLAY "ENTER DEP CODE :".
ACCEPT DEPCODE.
DISPLAY " " WITH BLANK SCREEN.
READ DEPARTMENTFILE INVALID KEY
GO TO ERROR-DEPARTMENT-PARA.
DISPLAY " DEPARTMENT CODE :" LINE 1 COL 1.
DISPLAY DEPCODE LINE 1 COL 20.
DISPLAY " DEPARTMENT NAME :" LINE 2 COL 1.
DISPLAY DEPNAME LINE 2 COL 20.
CLOSE DEPARTMENTFILE.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
REVISION-PARA.
DISPLAY " " WITH BLANK SCREEN.
OPEN INPUT REVISIONFILE.
DISPLAY "ENTER REVISION CODE:".
ACCEPT RREVID.
DISPLAY " " WITH BLANK SCREEN.
READ REVISIONFILE INVALID KEY
GO TO ERROR-REVISION-PARA.
DISPLAY " REVISION CODE :" LINE 1 COL 1.
DISPLAY RREVID LINE 1 COL 27.
DISPLAY " EMPLOYEE CODE :" LINE 2 COL 1.
DISPLAY REMPID LINE 2 COL 27.
DISPLAY " DESIGNATION CODE :" LINE 3 COL 1.
DISPLAY RDESCODE LINE 3 COL 27.
DISPLAY " BASIC :" LINE 4 COL 1.
DISPLAY RBASIC LINE 4 COL 27.
DISPLAY " HRA :" LINE 5 COL 1.
DISPLAY RHRA LINE 5 COL 27.
DISPLAY " DPA :" LINE 6 COL 1.
DISPLAY RDPA LINE 6 COL 27.
DISPLAY " PPA :" LINE 7 COL 1.
DISPLAY RPPA LINE 7 COL 27.
DISPLAY " EDUCATIONAL ALLOWANCE :" LINE 8 COL 1.
DISPLAY REDUA LINE 8 COL 27.
DISPLAY " TECHNICAL JOURNAL :" LINE 9 COL 1.
DISPLAY RTECHJR LINE 9 COL 27.
DISPLAY " LUNCH ALLOWANCE :" LINE 10 COL 1.
DISPLAY RLUNCHA LINE 10 COL 27.
DISPLAY " CONVEYANCE :" LINE 11 COL 1.
DISPLAY RCONVEY LINE 11 COL 27.
DISPLAY " BUSINESS ATTIREMENT :" LINE 12 COL 1.
DISPLAY RBUSATR LINE 12 COL 27.
DISPLAY " LEAVE TRAVEL ALLOWANCE :" LINE 13 COL 1.
DISPLAY RLTA LINE 13 COL 27.
DISPLAY " PF :" LINE 14 COL 1.
DISPLAY RPF LINE 14 COL 27.
DISPLAY " ESI :" LINE 15 COL 1.
DISPLAY RESI LINE 15 COL 27.
DISPLAY " REVISED DATE :" LINE 16 COL 1.
DISPLAY RREVDATE LINE 16 COL 27.
CLOSE REVISIONFILE.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
PAYMENT-PARA.
DISPLAY " " WITH BLANK SCREEN.
OPEN INPUT PAYMENTFILE.
DISPLAY "ENTER EMP CODE :".
ACCEPT PEMPID.
DISPLAY " " WITH BLANK SCREEN.
READ PAYMENTFILE INVALID KEY GO TO ERROR-PAYMENT-PARA.
DISPLAY " EMPLOYEE CODE :" LINE 1 COL 1.
DISPLAY PEMPID LINE 1 COL 35.
DISPLAY " BASIC :" LINE 2 COL 1.
DISPLAY PBASIC LINE 2 COL 35.
DISPLAY " DEARNESS ALLOWANCE :" LINE 3 COL 1.
DISPLAY PDA LINE 3 COL 35.
DISPLAY " CITY COMPENSATORY ALLOWANCE :" LINE 4 COL 1.
DISPLAY PCCA LINE 4 COL 35.
DISPLAY " HRA :" LINE 5 COL 1.
DISPLAY PHRA LINE 5 COL 35.
DISPLAY " DPA :" LINE 6 COL 1.
DISPLAY PDPA LINE 6 COL 35.
DISPLAY " PPA :" LINE 7 COL 1.
DISPLAY PPPA LINE 7 COL 35.
DISPLAY " EDUCATIONAL ALLOWANCE :" LINE 8 COL 1.
DISPLAY PEDUA LINE 8 COL 35.
DISPLAY " TECHNICAL JOURNAL :" LINE 9 COL 1.
DISPLAY PTECHJR LINE 9 COL 35.
DISPLAY " LUNCH ALLOWANCE :" LINE 10 COL 1.
DISPLAY PLUNCHA LINE 10 COL 35.
DISPLAY " CONVEYANCE :" LINE 11 COL 1.
DISPLAY PCONVEY LINE 11 COL 35.
DISPLAY " BUSINESS ATTIREMENT :" LINE 12 COL 1.
DISPLAY PBUSATR LINE 12 COL 35.
DISPLAY " LEAVE TRAVEL ALLOWANCE :" LINE 13 COL 1.
DISPLAY PLTA LINE 13 COL 35.
DISPLAY " PF :" LINE 14 COL 1.
DISPLAY PPF LINE 14 COL 35.
DISPLAY " ESI :" LINE 15 COL 1.
DISPLAY PESI LINE 15 COL 35.
DISPLAY " GRATUITY :" LINE 16 COL 1.
DISPLAY PGRTY LINE 16 COL 35.
DISPLAY " PROFESSIONAL TAX :" LINE 17 COL 1.
DISPLAY PPTAX LINE 17 COL 35.
DISPLAY " INCOME TAX :" LINE 18 COL 1.
DISPLAY PITAX LINE 18 COL 35.
DISPLAY " LOAN :" LINE 19 COL 1.
DISPLAY PLOAN LINE 19 COL 35.
DISPLAY " LOAN DEDUCTION AMOUNT :" LINE 20 COL 1.
DISPLAY PLOANDA LINE 20 COL 35.
DISPLAY " OTHER DEDUCTION :" LINE 21 COL 1.
DISPLAY POTHERD LINE 21 COL 35.
DISPLAY " PERFORMANCE INCENTIVE :" LINE 22 COL 1.
DISPLAY PPERINC LINE 22 COL 35.
DISPLAY " MEDICAL REIMBURSEMENT :" LINE 23 COL 1.
DISPLAY PMEDI LINE 23 COL 35.
DISPLAY " BOOK REIMBURSEMENT :" LINE 24 COL 1.
DISPLAY PBOOK LINE 24 COL 35.
DISPLAY " " WITH BLANK SCREEN.
DISPLAY " ENTERTAINMENT :" LINE 1 COL 1.
DISPLAY PENTER LINE 1 COL 35.
DISPLAY " PHONE :" LINE 2 COL 1.
DISPLAY PTPH LINE 2 COL 35.
DISPLAY " HOUSE RELATED :" LINE 3 COL 1.
DISPLAY PHOUSE LINE 3 COL 35.
DISPLAY " VEHICLE MAINTENANCE :" LINE 4 COL 1.
DISPLAY PVEHMAN LINE 4 COL 35.
DISPLAY " CREDIT CARD :" LINE 5 COL 1.
DISPLAY PCREDIT LINE 5 COL 35.
DISPLAY " CLUB :" LINE 6 COL 1.
DISPLAY PCLUB LINE 6 COL 35.
DISPLAY " CASUAL LEAVE :" LINE 7 COL 1.
DISPLAY PCL LINE 7 COL 35.
DISPLAY " SICK LEAVE :" LINE 8 COL 1.
DISPLAY PSL LINE 8 COL 35.
DISPLAY " PAID LEAVE :" LINE 9 COL 1.
DISPLAY PPL LINE 9 COL 35.
DISPLAY " LEAVE LOSS OF PAY :" LINE 10 COL 1.
DISPLAY PLLOP LINE 10 COL 35.
DISPLAY " OTHER LEAVES :" LINE 11 COL 1.
DISPLAY POTHERL LINE 11 COL 35.
CLOSE PAYMENTFILE.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
CONFIRMATION-PARA.
DISPLAY " " WITH BLANK SCREEN.
OPEN INPUT CONFIRMATIONFILE.
DISPLAY "ENTER CODE :".
ACCEPT CCONID.
DISPLAY " " WITH BLANK SCREEN.
READ CONFIRMATIONFILE INVALID KEY
GO TO ERROR-CONFIRMATION-PARA.
DISPLAY " CONFIRMATION CODE :" LINE 1 COL 1.
DISPLAY CCONID LINE 1 COL 25.
DISPLAY " EMPLOYEE CODE :" LINE 2 COL 1.
DISPLAY CEMPID LINE 2 COL 25.
DISPLAY " CONFIRMATION DATE :" LINE 3 COL 1.
DISPLAY CCDATE LINE 3 COL 25.
CLOSE CONFIRMATIONFILE.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
GRADE-PARA.
DISPLAY " " WITH BLANK SCREEN.
OPEN INPUT GRADEFILE.
DISPLAY "ENTER GRADE NO. :".
ACCEPT GR.
DISPLAY " " WITH BLANK SCREEN.
PERFORM GR-READ-PARA UNTIL FSG = 10.
GR-READ-PARA.
READ GRADEFILE AT END GO TO GR-EXIT-PARA.
IF GGRADE = GR
DISPLAY " GRADE NO. :" LINE 1 COL 1.
DISPLAY GGRADE LINE 1 COL 18.
DISPLAY " DESIGNATION :" LINE 2 COL 1.
DISPLAY GDESIGN LINE 2 COL 18.
GR-EXIT-PARA.
CLOSE GRADEFILE.
DISPLAY ' '.
DISPLAY ' '.
DISPLAY "PRESS ENTER TO RETURN TO HRMS READ MENU".
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
TRANSFER-PARA.
DISPLAY " " WITH BLANK SCREEN.
OPEN INPUT TRANSFERFILE.
DISPLAY "ENTER TRANSFER CODE :".
ACCEPT TTRFID.
DISPLAY " " WITH BLANK SCREEN.
READ TRANSFERFILE INVALID KEY GO TO ERROR-TRANSFER-PARA.
DISPLAY " TRANSFER CODE :" LINE 1 COL 1.
DISPLAY TTRFID LINE 1 COL 25.
DISPLAY " EMP CODE :" LINE 2 COL 1.
DISPLAY TEMPID LINE 2 COL 25.
DISPLAY " OLD BRANCH CODE :" LINE 3 COL 1.
DISPLAY TOBRID LINE 3 COL 25.
DISPLAY " TRANSFER DATE :" LINE 4 COL 1.
DISPLAY TTRFDT LINE 4 COL 25.
CLOSE TRANSFERFILE.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
EMPPERSONAL-PARA.
DISPLAY " " WITH BLANK SCREEN.
OPEN INPUT EMPPERSONALFILE.
DISPLAY "ENTER EMP CODE :".
ACCEPT EPEMPID.
DISPLAY " " WITH BLANK SCREEN.
READ EMPPERSONALFILE INVALID KEY
GO TO ERROR-EMPPERSONAL-PARA.
DISPLAY " EMPLOYEE CODE :" LINE 1 COL 1.
DISPLAY EPEMPID LINE 1 COL 30.
DISPLAY " TEMPORARY ADDRESS :" LINE 2 COL 1.
DISPLAY EPTADD LINE 2 COL 30.
DISPLAY " PHONE :" LINE 3 COL 1.
DISPLAY EPTPH LINE 3 COL 30.
DISPLAY " DOB :" LINE 4 COL 1.
DISPLAY EPDOB LINE 4 COL 30.
DISPLAY " POB :" LINE 5 COL 1.
DISPLAY EPPOB LINE 5 COL 30.
DISPLAY " LANGUAGE KNOWN :" LINE 6 COL 1.
DISPLAY EPLANG LINE 6 COL 30.
DISPLAY " BLOOD GROUP :" LINE 7 COL 1.
DISPLAY EPBLOOD LINE 7 COL 30.
DISPLAY " WEIGHT :" LINE 8 COL 1.
DISPLAY EPWEIGHT LINE 8 COL 30.
DISPLAY " HEIGHT :" LINE 9 COL 1.
DISPLAY EPHEIGHT LINE 9 COL 30.
DISPLAY " VISION :" LINE 10 COL 1.
DISPLAY EPVISION LINE 10 COL 30.
DISPLAY " FATHER'S NAME :" LINE 11 COL 1.
DISPLAY EPFATHER LINE 11 COL 30.
DISPLAY " DOB OF FATHER :" LINE 12 COL 1.
DISPLAY EPDOBF LINE 12 COL 30.
DISPLAY " MOTHER'S NAME :" LINE 13 COL 1.
DISPLAY EPMOTHER LINE 13 COL 30.
DISPLAY " DOB OF MOTHER :" LINE 14 COL 1.
DISPLAY EPDOBM LINE 14 COL 30.
DISPLAY " SPOUSE NAME :" LINE 15 COL 1.
DISPLAY EPSPOUSE LINE 15 COL 30.
DISPLAY " CHILD NAME :" LINE 16 COL 1.
DISPLAY EPCHILD LINE 16 COL 30.
DISPLAY " DOB OF CHILD :" LINE 17 COL 1.
DISPLAY EPDOBC LINE 17 COL 30.
CLOSE EMPPERSONALFILE.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
ERROR-EMP-PARA.
CLOSE EMPFILE.
DISPLAY " " WITH BLANK SCREEN.
DISPLAY "INVALID CODE" LINE 12 COL 30.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
ERROR-LEAVE-PARA.
CLOSE LEAVEFILE.
DISPLAY " " WITH BLANK SCREEN.
DISPLAY "INVALID CODE" LINE 12 COL 30.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
ERROR-BRANCH-PARA.
CLOSE BRANCHFILE.
DISPLAY " " WITH BLANK SCREEN.
DISPLAY "INVALID CODE" LINE 12 COL 30.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
ERROR-DEPARTMENT-PARA.
CLOSE DEPARTMENTFILE.
DISPLAY " " WITH BLANK SCREEN.
DISPLAY "INVALID CODE" LINE 12 COL 30.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
ERROR-REVISION-PARA.
CLOSE REVISIONFILE.
DISPLAY " " WITH BLANK SCREEN.
DISPLAY "INVALID CODE" LINE 12 COL 30.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
ERROR-PAYMENT-PARA.
CLOSE PAYMENTFILE.
DISPLAY " " WITH BLANK SCREEN.
DISPLAY "INVALID CODE" LINE 12 COL 30.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
ERROR-CONFIRMATION-PARA.
CLOSE CONFIRMATIONFILE.
DISPLAY " " WITH BLANK SCREEN.
DISPLAY "INVALID CODE" LINE 12 COL 30.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
ERROR-TRANSFER-PARA.
CLOSE TRANSFERFILE.
DISPLAY " " WITH BLANK SCREEN.
DISPLAY "INVALID CODE" LINE 12 COL 30.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
ERROR-EMPPERSONAL-PARA.
CLOSE EMPPERSONALFILE.
DISPLAY " " WITH BLANK SCREEN.
DISPLAY "INVALID CODE" LINE 12 COL 30.
DISPLAY
"PRESS ENTER TO RETURN TO HRMS READ MENU" LINE 20 COL 10.
ACCEPT ENTER LINE 20 COL 50.
STOP ' '.
GO TO MAIN-PARA.
IDENTIFICATION DIVISION.
PROGRAM-ID. EMPWRITE.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT EMPFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS EEMPID
FILE STATUS IS FSO.
SELECT LEAVEFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS LEMPID
FILE STATUS IS FSL.
SELECT BRANCHFILE ASSIGN TO DISK
ORGANIZATION IS SEQUENTIAL
ACCESS MODE IS SEQUENTIAL
FILE STATUS IS FSB.
SELECT DESIGNATIONFILE ASSIGN TO DISK
ORGANIZATION IS SEQUENTIAL
ACCESS MODE IS SEQUENTIAL
FILE STATUS IS FSDES.
SELECT DEPARTMENTFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS DEPCODE
FILE STATUS IS FSDEP.
SELECT REVISIONFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS RREVID
ALTERNATE RECORD KEY IS REMPID
FILE STATUS IS FSR.
SELECT PAYMENTFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS PEMPID
FILE STATUS IS FSP.
SELECT CONFIRMATIONFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS CCONID
ALTERNATE RECORD KEY IS CEMPID
FILE STATUS IS FSC.
SELECT GRADEFILE ASSIGN TO DISK
ORGANIZATION IS SEQUENTIAL
ACCESS MODE IS SEQUENTIAL
FILE STATUS IS FSG.
SELECT TRANSFERFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS TTRFID
FILE STATUS IS FST.
SELECT EMPPERSONALFILE ASSIGN TO DISK
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS EPEMPID
FILE STATUS IS FSEP.
DATA DIVISION.
FILE SECTION.
FD EMPFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "EMP.DAT".
01 EMPREC.
02 EEMPID PIC X(6).
02 EEMPNAME PIC X(25).
02 EEMPADDR PIC X(30).
02 EPHONE PIC X(10).
02 EDOJ PIC X(10).
02 EDIP PIC X(10).
02 EUG PIC X(4).
02 EPG PIC X(4).
02 EPROFQ PIC X(4).
02 ESKILL PIC X(10).
02 EGRDNO PIC 99.
02 EBRNID PIC X(6).
02 EDESID PIC X(6).
FD LEAVEFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "LEAVE.DAT".
01 LEAVEREC.
02 LEMPID PIC X(6).
02 LFMDATE PIC X(10).
02 LTODATE PIC X(10).
02 LLEVCAT PIC X(3).
FD BRANCHFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "BRANCH.DAT".
01 BRANCHREC.
02 BBRID PIC X(6).
02 BBRNAME PIC X(15).
02 BBRADD PIC X(30).
02 BBRPH PIC X(10).
02 BEMAIL PIC X(20).
02 BMGRNAME PIC X(25).
FD DESIGNATIONFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "DESIG.DAT".
01 DESIGNATIONREC.
02 DESID PIC X(6).
02 DESIGN PIC X(15).
02 DESHRT PIC X(4).
FD DEPARTMENTFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "DEPART.DAT".
01 DEPARTMENTREC.
02 DEPCODE PIC X(6).
02 DEPNAME PIC X(20).
FD REVISIONFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "REVISION.DAT".
01 REVISIONREC.
02 RREVID PIC X(6).
02 REMPID PIC X(6).
02 RDESCODE PIC X(6).
02 RBASIC PIC 9(6)V99.
02 RHRA PIC 9(6)V99.
02 RDPA PIC 9(6)V99.
02 RPPA PIC 9(6)V99.
02 REDUA PIC 9(6)V99.
02 RTECHJR PIC 9(6)V99.
02 RLUNCHA PIC 9(6)V99.
02 RCONVEY PIC 9(6)V99.
02 RBUSATR PIC 9(6)V99.
02 RLTA PIC 9(6)V99.
02 RPF PIC 9(6)V99.
02 RESI PIC 9(6)V99.
02 RREVDATE PIC X(10).
FD PAYMENTFILE
LABEL RECORDS ARE STANDARD
VALUE OF FILE-ID IS "PAYMENT.DAT".
01 PAYMENTREC.
02 PEMPID PIC X(6).
02 PBASIC PIC 9(6)V99.
02 PDA PIC 9(6)V99.
02 PCCA PIC 9(6)V99.
02 PHRA PIC 9(6)V99.
02 PDPA PIC 9(6)V99.
02 PPPA PIC 9(6)V99.
02 PEDUA PIC 9(6)V99.
02 PTECHJR PIC 9(6)V99.
02 PLUNCHA PIC 9(6)V99.
02 PCONVEY PIC 9(6)V99.
02 PBUSATR PIC 9(6)V99.
02 PLTA PIC 9(6)V99.
02 PPF PIC 9(6)V99.
02 PESI PIC 9(6)V99.
02 PGRTY PIC 9(6)V99.
02 PPTAX PIC 9(6)V99.
02 PITAX PIC 9(6)V99.
02 PLOAN PIC 9(8)V99.
02 PLOANDA PIC 9(8)V99.
02 POTHERD PIC 9(6)V99.
02 PPERINC PIC 9(6)V99.
02 PMEDI PIC 9(6)V99.
02 PBOOK PIC 9(6)V99.
02 PENTER PIC 9(6)V99.
02 PTPH PIC 9(6)V99.
02 PHOUSE PIC 9(6)V99.
02 PVEHMAN PIC 9(6)V99.
02 PCREDIT PIC 9(6)V99.
02 PCLUB PIC 9(6)V99.
02 PCL PIC 99.
02 PSL PIC 99.