Rechercher : dans
Par :

Problème compilation cobol

Dernière réponse le 10 oct 2007 à 22:04:40 titcobol, le 26 nov 2005 à 20:26:06 
 Signaler ce message aux modérateurs

Bonjour,

J'ai installer fujisu cobol et lors de la compilation du prog que voici :

IDENTIFICATION DIVISION.
PROGRAM-ID. prog1.
DATE-WRITTEN. 21/05/05 19:04.
AUTHOR. zn.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. RM-COBOL.
OBJECT-COMPUTER. RM-COBOL.

DATA DIVISION.
WORKING-STORAGE SECTION.
01 REQUEST-MESSAGE PIC X(42) VALUE "aa".

PROCEDURE DIVISION.
DATA-INPUT SECTION.

DISPLAY REQUEST-MESSAGE WITH NO ADVANCING.
EXIT PROGRAM.
END PROGRAM prog1.

voici les erreurs lors de la compilation dont 2 sévère :

** DIAGNOSTIC MESSAGE ** (NOPRGMID)
E:\cob\prog\prog1.cob 0: JMN1102I-S IDENTIFICATION DIVISION HEADER IS MISSING. HEADER ASSUMED TO BE CODED.
E:\cob\prog\prog1.cob 1: JMN1019I-W INDICATOR AREA MUST CONTAIN '-','*','/','D',OR BLANK. A BLANK IS ASSUMED TO BE SPECIFIED.
E:\cob\prog\prog1.cob 1: JMN1005I-W CHARACTER STRING 'ICATION' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 1: JMN1356I-W INVALID WORD 'ICATION' IS SPECIFIED IN IDENTIFICATION DIVISION. IGNORED UNTIL NEXT PARAGRAPH OR DIVISION.
E:\cob\prog\prog1.cob 2: JMN1104I-S PROGRAM-ID PARAGRAPH IS MISSING. PROGRAM-NAME GENERATED BY SYSTEM.
E:\cob\prog\prog1.cob 2: JMN1019I-W INDICATOR AREA MUST CONTAIN '-','*','/','D',OR BLANK. A BLANK IS ASSUMED TO BE SPECIFIED.
E:\cob\prog\prog1.cob 2: JMN1041I-W SEPARATOR MUST FOLLOW CHARACTER STRING. SEPARATOR ASSUMED.
E:\cob\prog\prog1.cob 2: JMN1100I-W WORD 'DIVISION' OR 'SECTION' IS MISSING. WORD ASSUMED TO BE CODED.
E:\cob\prog\prog1.cob 2: JMN1356I-W INVALID WORD 'PROG1' IS SPECIFIED IN IDENTIFICATION DIVISION. IGNORED UNTIL NEXT PARAGRAPH OR DIVISION.
E:\cob\prog\prog1.cob 3: JMN1019I-W INDICATOR AREA MUST CONTAIN '-','*','/','D',OR BLANK. A BLANK IS ASSUMED TO BE SPECIFIED.
E:\cob\prog\prog1.cob 3: JMN1005I-W CHARACTER STRING 'ITTEN' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 3: JMN1041I-W SEPARATOR MUST FOLLOW CHARACTER STRING. SEPARATOR ASSUMED.
E:\cob\prog\prog1.cob 3: JMN1041I-W SEPARATOR MUST FOLLOW CHARACTER STRING. SEPARATOR ASSUMED.
E:\cob\prog\prog1.cob 3: JMN1041I-W SEPARATOR MUST FOLLOW CHARACTER STRING. SEPARATOR ASSUMED.
E:\cob\prog\prog1.cob 3: JMN1041I-W SEPARATOR MUST FOLLOW CHARACTER STRING. SEPARATOR ASSUMED.
E:\cob\prog\prog1.cob 4: JMN1019I-W INDICATOR AREA MUST CONTAIN '-','*','/','D',OR BLANK. A BLANK IS ASSUMED TO BE SPECIFIED.
E:\cob\prog\prog1.cob 5: JMN1019I-W INDICATOR AREA MUST CONTAIN '-','*','/','D',OR BLANK. A BLANK IS ASSUMED TO BE SPECIFIED.
E:\cob\prog\prog1.cob 5: JMN1005I-W CHARACTER STRING 'MENT' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 6: JMN1019I-W INDICATOR AREA MUST CONTAIN '-','*','/','D',OR BLANK. A BLANK IS ASSUMED TO BE SPECIFIED.
E:\cob\prog\prog1.cob 6: JMN1005I-W CHARACTER STRING 'RATION' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 7: JMN1043I-S AREA A OF CONTINUATION LINE MUST BE BLANK. OR WHOLE CHARACTER-STRING CONTINUED BY CONTINUATION OF LINES IS INVALID AS COBOL WORD. HYPHEN IN INDICATOR AREA IS IGNORED.
E:\cob\prog\prog1.cob 7: JMN1005I-W CHARACTER STRING 'COMPUTER' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 8: JMN1043I-S AREA A OF CONTINUATION LINE MUST BE BLANK. OR WHOLE CHARACTER-STRING CONTINUED BY CONTINUATION OF LINES IS INVALID AS COBOL WORD. HYPHEN IN INDICATOR AREA IS IGNORED.
E:\cob\prog\prog1.cob 8: JMN1005I-W CHARACTER STRING 'COMPUTER' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 10: JMN1019I-W INDICATOR AREA MUST CONTAIN '-','*','/','D',OR BLANK. A BLANK IS ASSUMED TO BE SPECIFIED.
E:\cob\prog\prog1.cob 10: JMN1005I-W CHARACTER STRING 'VISION' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 11: JMN1019I-W INDICATOR AREA MUST CONTAIN '-','*','/','D',OR BLANK. A BLANK IS ASSUMED TO BE SPECIFIED.
E:\cob\prog\prog1.cob 11: JMN1041I-W SEPARATOR MUST FOLLOW CHARACTER STRING. SEPARATOR ASSUMED.
E:\cob\prog\prog1.cob 11: JMN1005I-W CHARACTER STRING 'STORAGE' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 12: JMN1019I-W INDICATOR AREA MUST CONTAIN '-','*','/','D',OR BLANK. A BLANK IS ASSUMED TO BE SPECIFIED.
E:\cob\prog\prog1.cob 12: JMN1005I-W CHARACTER STRING 'UEST-MESSAGE' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 14: JMN1019I-W INDICATOR AREA MUST CONTAIN '-','*','/','D',OR BLANK. A BLANK IS ASSUMED TO BE SPECIFIED.
E:\cob\prog\prog1.cob 14: JMN1005I-W CHARACTER STRING 'RE' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 15: JMN1019I-W INDICATOR AREA MUST CONTAIN '-','*','/','D',OR BLANK. A BLANK IS ASSUMED TO BE SPECIFIED.
E:\cob\prog\prog1.cob 15: JMN1005I-W CHARACTER STRING 'PUT' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 17: JMN1019I-W INDICATOR AREA MUST CONTAIN '-','*','/','D',OR BLANK. A BLANK IS ASSUMED TO BE SPECIFIED.
E:\cob\prog\prog1.cob 17: JMN1005I-W CHARACTER STRING 'AY' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 17: JMN1005I-W CHARACTER STRING 'REQUEST-MESSAGE' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 18: JMN1004I-W RESERVED WORD 'PROGRAM' MUST START IN AREA B. ASSUMED TO START IN AREA B.
E:\cob\prog\prog1.cob 19: JMN1044I-S PROGRAM CONTAINED WITHIN PROGRAM 'NOPRGMID' MUST END WITH END PROGRAM HEADER. END PROGRAM HEADER ASSUMED.
E:\cob\prog\prog1.cob 19: JMN1291I-S PROGRAM-NAME PARAGRAPH MUST BE SPECIFIED IN IDENTIFICATION DIVISION.
E:\cob\prog\prog1.cob 19: JMN1019I-W INDICATOR AREA MUST CONTAIN '-','*','/','D',OR BLANK. A BLANK IS ASSUMED TO BE SPECIFIED.
E:\cob\prog\prog1.cob 19: JMN1005I-W CHARACTER STRING 'GRAM' MUST START IN AREA B. ASSUMED TO START IN AREA B.
STATISTICS: HIGHEST SEVERITY CODE=S, PROGRAM UNIT=1

Je pense que l'erreur n'est pas si difficile que cela mais je ne connais pas ce compilateur et je ne sais pas si mon erreur vient de l'éditeur ou un dll à installer. En tout cas tout programme compiler sort des erreurs.

Merci d'avance pour votre aide.

Configuration: xp pro

Meilleures réponses pour « problème compilation cobol » dans :
La compilation et les modules en C et en C++ VoirCet article a pour vocation d'introduire les notions de bases de la compilation en C et en C++ et de la programmation modulaire. Il permet de mieux comprendre les messages d'erreur du compilateur. Les notions abordées ici sont indépendantes du...
Compiler du C sous Linux/UNIX VoirSous Linux, le compilateur de C est gcc. Il est installé de base sur plusieurs distributions, mais sur Debian (et celles qui en découlent) il faudra l'installer (aptitude install gcc). gcc Syntaxe de GCC gcc Tout d'abord, il faut savoir...
Compiler un programme en C avec Dev C++ sous Vista VoirIl est très probable que vous ayez des problèmes lors de la compilation d'une source C sous Vista avec Dev C++. Solution rapide de secours: le compilateur g++ Voici une astuce pour Dev-Cpp : Aller dans "Outils" -> "Options du compilateur" puis...
Télécharger Code::Blocks Studio VoirCode::Blocks est un IDE multi-plateforme (Linux, Mac et Windows) entièrement codé en C++. Code::Blocks est basé sur un système de plugins, ce qui permet de le faire évoluer très facilement sans devoir le recompiler. La compilation, qui peut se...
Linux - Compilation du noyau (Kernel) VoirCompilation du Kernel Cet article a pour but de présenter la compilation du noyau (ou kernel) sous Linux. Les explications suivantes sont basées sur la version 2.4.20 du kernel, la dernière en date au moment de l'écriture de l'article (mars...
Java - Caractéristiques du langage VoirFichier source, compilation et machine virtuelle Le fichier source d'un programme écrit en Java est un simple fichier texte dont l'extension est par convention .java. Ce fichier source doit être un fichier texte non formatté, c'est-à-dire un...

1

devisch, le 26 nov 2005 à 21:14:58

Bonsoir titcobol,
Cela fait 30 ans que je n'ai plus touché au Cobol, mais il me semble que le compilateur ne reconnait même pas ta première ligne: Identificaton Division. Aurais-tu une ligne blanche qui la précède ou une crasse qui traine devant tes lignes de programme ?
Vive le COBOL !!

Répondre à devisch

2

titcobol, le 27 nov 2005 à 11:40:19

Salut devisch,

Merci de te pencher sur mon problème.

Il n'y a ps de ligne blanche ou autre, je regarde s'il faut toucher à la config du compilateur mais je ne voie rien.

Merci quand même.

Répondre à titcobol

3

devisch, le 27 nov 2005 à 15:54:08

Bonjour titcobol,
Si ton problème n'est pas résolu, il se pourrait que ce soit l'emplacement du premier caractère de chaque ligne. A l'époque il fallait démarrer en colonne 8. Les 7 premières étant réservées au n° d'ordre de l'instruction. Les instructions étaient perforées dans des cartes et il y avait intérêt à savoir dans quel ordre les placer !! J'ignore si les compilateurs actuels ont tjs les mêmes exigeances !!
Bonne chance.
Guy
Vive le COBOL !!

Répondre à devisch

4

devisch, le 27 nov 2005 à 15:54:22

Bonjour titcobol,
Si ton problème n'est pas résolu, il se pourrait que ce soit l'emplacement du premier caractère de chaque ligne. A l'époque il fallait démarrer en colonne 8. Les 7 premières étant réservées au n° d'ordre de l'instruction. Les instructions étaient perforées dans des cartes et il y avait intérêt à savoir dans quel ordre les placer !! J'ignore si les compilateurs actuels ont tjs les mêmes exigeances !!
Bonne chance.
Guy
Vive le COBOL !!

Répondre à devisch

11

delphi79, le 8 sep 2006 à 13:42:44

Salut,

Dommage d'avoir arrêté la programmation en cobol, si tu souhaites à nouveau t'y recoller, envoie-moi un mail, j'ai besoin d'info. Merci à bientôt

Répondre à delphi79

5

titcobol, le 27 nov 2005 à 17:30:34

Salut devisch,

Merci, j'ai anticipé la chose et le résultat à changer,
voici le programme :

000010 $ SET SOURCEFORMAT"FREE"
000020 IDENTIFICATION DIVISION.
000030 PROGRAM-ID. prog1.
000040 DATE-WRITTEN. 21/05/05 19:04.
000050 AUTHOR. zn.
000060 ENVIRONMENT DIVISION.
000070 CONFIGURATION SECTION.
000080 SOURCE-COMPUTER. RM-COBOL.
000090 OBJECT-COMPUTER. RM-COBOL.
000100
000110 DATA DIVISION.
000120 WORKING-STORAGE SECTION.
000130 01 REQUEST-MESSAGE PIC X(42) VALUE "aa".
000140
000150 PROCEDURE DIVISION.
000160 DATA-INPUT SECTION.
000170
000180 DISPLAY REQUEST-MESSAGE WITH NO ADVANCING.
000190
STOP RUN.
000200 END PROGRAM prog1.

et voici les erreur, il y en a moins, mais que les sévère :

** DIAGNOSTIC MESSAGE ** (NOPRGMID)
E:\cob\prog\prog1.cob 0: JMN1102I-S IDENTIFICATION DIVISION HEADER IS MISSING. HEADER ASSUMED TO BE CODED.
E:\cob\prog\prog1.cob 1: JMN1000I-S CHARACTER EXCLUDED FROM COBOL CHARACTER SET IS USED. THAT CHARACTER IS IGNORED.
E:\cob\prog\prog1.cob 1: JMN1041I-W SEPARATOR MUST FOLLOW CHARACTER STRING. SEPARATOR ASSUMED.
E:\cob\prog\prog1.cob 1: JMN1356I-W INVALID WORD 'SET' IS SPECIFIED IN IDENTIFICATION DIVISION. IGNORED UNTIL NEXT PARAGRAPH OR DIVISION.
E:\cob\prog\prog1.cob 2: JMN1104I-S PROGRAM-ID PARAGRAPH IS MISSING. PROGRAM-NAME GENERATED BY SYSTEM.
E:\cob\prog\prog1.cob 7: JMN1113I-S CONFIGURATION SECTION CANNOT BE SPECIFIED IN INTERNAL PROGRAM.
E:\cob\prog\prog1.cob 8: JMN1113I-S CONFIGURATION SECTION CANNOT BE SPECIFIED IN INTERNAL PROGRAM.
E:\cob\prog\prog1.cob 9: JMN1113I-S CONFIGURATION SECTION CANNOT BE SPECIFIED IN INTERNAL PROGRAM.
STATISTICS: HIGHEST SEVERITY CODE=S, PROGRAM UNIT=1

Répondre à titcobol

6

guy24, le 28 nov 2005 à 11:33:34

Bonjour Titcobol,
J'ai changé d'identification, guy24 est plus sympa. Je regarde ton programme et je reviens.

Horum Gallum populi fortissimi sunt Belgea !!

Répondre à guy24

7

guy24, le 28 nov 2005 à 11:43:32

A mon avis c'est la première carte § set source... qui dérange le compilateur et la stop run n'est pas à sa place.
Horum Gallum populi fortissimi sunt Belgea !!

Répondre à guy24

8

titcobol, le 28 nov 2005 à 12:04:49

Salut guy24,

Bravo et merci, j'ai vite percuté, et ça marche,
Maintenant je recherche des tuto sur fijisu cobol pour pourvoir executer des taches batch pour passer plusieur programme faire des jcl avec des job de tri et des enregistrament de fichier et des états.

Merci beaucoup,
et si tu connais des sites sur ce qu je recherche, merci encore.

Pour ma part je cherche.

Merci et a+ guy24

Répondre à titcobol

9

guy24, le 28 nov 2005 à 15:04:57

Je suis, en effet, très content surtout qu'à part moi, il n'y avait pas grand monde pour te répondre !! Normal, il suffit de voir mes données perso pour comprendre. J'ai fait le calcul il y a 40 ans ( et non pas 30) que je n'ai plus programmé en Cobol !! En allant sur des sites de ce langage j'ai été surpris d'apprendre que 75% des programmes actuels tournent en Cobol. Dommage pour toi, j'ai balancé toute ma doc il y a très longtemps au cours de déménagements successifs. Mais si je vois qqchose je te le dis.
Good Luck et vive le COBOL !!
Horum Gallum populi fortissimi sunt Belgae !!

Répondre à guy24

10

titcobol, le 28 nov 2005 à 15:29:28

Salut et merci guy24,

Tu me sort un javelot du pied.

Merci pour l'aide

A+

Répondre à titcobol

12

Webwarrior, le 8 oct 2007 à 16:48:47

Bonjour,
je dois apprendre depuis peu du cobol, je comprend rien,lol j'essaie d'afficher bonjour simplement je suis meme pas capable de faire cela
Merci pour tout l'aide que vous pouvez m'apporter.

J'ai installer fujisu cobol et à la compilation du prog que voici :

IDENTIFICATION DIVISION.
PROGRAM-ID. SALUT.
DATE-WRITTEN. 10/08/07 19:04.
AUTHOR.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. RM-COBOL.
OBJECT-COMPUTER. RM-COBOL.

DATA DIVISION.
FILE SECTION.

PROCEDURE DIVISION.

DEBUT.
DISPLAY " " LINE 1 POSITION 1 ERASE EOS.
DISPLAY "BONJOUR !" LINE 15 POSITION 10.
STOP RUN.

***************************************************************************************
** DIAGNOSTIC MESSAGE ** (SALUT)
C:\WINDOWS\Bureau\File1.cob 16: JMN2500I-S THERE IS WORD 'POSITION' WHERE STATEMENT MUST APPEAR.
C:\WINDOWS\Bureau\File1.cob 16: JMN2643I-S ERASE STATEMENT CANNOT BE USED WHEN SUBSCHEMA-NAME PARAGRAPH IS NOT SPECIFIED.
C:\WINDOWS\Bureau\File1.cob 16: JMN2774I-W 'ERASE' IS A PROPER FUNCTION TO THE MSP OR XSP SYSTEM.
C:\WINDOWS\Bureau\File1.cob 17: JMN2500I-S THERE IS WORD 'POSITION' WHERE STATEMENT MUST APPEAR.
STATISTICS: HIGHEST SEVERITY CODE=S, PROGRAM UNIT=1

Répondre à Webwarrior

13

 adel de boumerdes algerie, le 10 oct 2007 à 22:04:40

Bonjour,
c'est adel de boumerdes algerie

cobol fonctionne bien sous windows 98 ou 2000 mais pas sur xp.

si vous desirez toujours programmer en cobol, changez de systeme d'exploitation.

sachez que j'ai toujours programmé en cobol pendant 30 ans, et je suis toujours avec cobol.

salut a tous les cobolistes. pour me contacter : email : t.adel@hotmail.com

bonne chance et bon courage.... vive cobol

Répondre à adel de boumerdes algerie