salut tout le monde
je suis un nouveau et je cherche a compiler un programme cobol
voici mon programme:
j ai telecharge open-cobol-1.1 et cobol it mais j arrive pas a savoir comment compiler ni comment l utiliser avec cobol editor
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 IDENTIFICATION DIVISION. PROGRAM-ID. AcceptAndDisplay. environment division. DATA DIVISION. WORKING-STORAGE SECTION. 01 StudentDetails. 02 StudentId PIC 9(7). 01 StudentName. 02 Surname PIC X(8). 02 Initials PIC XX. 02 CourseCode PIC X(4). 02 Gender PIC X. * YYMMDD 01 CurrentDate. 02 CurrentYear PIC 9(2). 02 CurrentMonth PIC 9(2). 02 CurrentDay PIC 9(2). * YYDDD 01 DayOfYear. 02 FILLER PIC 9(4)value 0. 02 YearDay PIC 9(3) value 0. * HHMMSSss s = S/100 01 CurrentTime. 02 HH PIC 99. 02 MM PIC 99. 02 SS PIC 99. 02 CC PIC 99. PROCEDURE DIVISION. Begin. DISPLAY "Enter student details using template below". DISPLAY "Enter - ID,Surname,Initials,CourseCode,Gender". DISPLAY "SSSSSSSNNNNNNNNIICCCCG". ACCEPT StudentId. ACCEPT CurrentDate FROM DATE yymmdd. ACCEPT DayOfYear FROM Day yyddd. ACCEPT CurrentTime FROM TIME hhmmsscc. DISPLAY "Name is " Initials Surname. DISPLAY "Date is " CurrentDay "/" CurrentMonth "/" CurrentYear. DISPLAY "Today is day " YearDay " of the year". DISPLAY "The time is " CurrentHour ":" CurrentMinute. STOP RUN. *end.
merci de votre aide
Partager