Cobol Foro
Navegación en el Foro
Retroceder   Cobol Foro Entornos de desarrollo y compiladores Cobol Fujitsu COBOL PowerCOBOL (ActiveX, v4 - v11)
PowerCOBOL (ActiveX, v4 - v11) Versiones del IDE basadas en ActiveX
 
Otros temas que te pueden interesar
Tema Autor Foro Respuestas Último post
[Aporte] Codigo de barras de Pago Fácil ( Argentina ) Fito Software 3 3 de diciembre de 2024 19:14
Mantenimiento Facil en España. Hrmcobol Charladero - espacio libre 10 30 de junio de 2020 03:25
[Herramienta] Pasar datos de Cobol (Archivos RMKF) a txt/Excel JuanPelaez COBOL - General 10 3 de enero de 2020 12:58
[Sintaxis] Crear generar un TXT Dasije WinDev 1 12 de noviembre de 2016 03:21

Respuesta
 
Herramientas

  #11
Antiguo 10 de octubre de 2017, 21:13
KalEl
Forero Junior
Última Actividad 30.05.2018 21:37
Posts Posts: 14
Likes enviados Enviados: 1
Likes recibidos Recibidos: 0

Copie todo el código en el "EVENT PROCEDURES" OPENED.

y al compilarlo me da el siguiente error.

Código COBOL:
  1. MainForm MainForm-Opened(1) :  JMN1019I-W  The indicator area must contain '-', '*', '/', 'D', or blank. A blank is assumed to be specified.
  2. MainForm MainForm-Opened(1) :  JMN1005I-W  Character string 'NVIRONMENT' must start in Area B. The character string is assumed to start in Area B.
  3. MainForm MainForm-Opened(1) :  JMN1356I-W  The invalid word 'NVIRONMENT' is specified in the IDENTIFICATION DIVISION. The invalid word is ignored, and the compiler skips to the next paragraph or DIVISION.
  4. AR19.FD 1: JMN2005I-S  The file-name for the file description entry or the sort-merge file description entry must be defined at the SELECT clause of the FILE-CONTROL paragraph.  A sequential file is assumed.
  5. MainForm MainForm-Opened(16) :  JMN2005I-S  The file-name for the file description entry or the sort-merge file description entry must be defined at the SELECT clause of the FILE-CONTROL paragraph.  A sequential file is assumed.
  6. MainForm MainForm-Opened(55) :  JMN2503I-S  User word 'ST-S' is undefined.
  7. MainForm MainForm-Opened(55) :  JMN2557I-S  The format of the MOVE statement is incomplete.
  8. MainForm MainForm-Opened(55) :  JMN2503I-S  User word 'AR19' is undefined.
  9. MainForm MainForm-Opened(55) :  JMN2503I-S  User word 'ST-S' is undefined.
  10. MainForm MainForm-Opened(55) :  JMN2600I-S  The operand of the condition is invalid.
  11. MainForm MainForm-Opened(55) :  JMN2557I-S  The format of the IF statement is incomplete.
  12. MainForm MainForm-Opened(61) :  JMN3166I-S  Sequential access sequential file 'CLIE' cannot be specified in a START statement.
  13. MainForm MainForm-Opened(63) :  JMN2503I-S  User word 'ST-OK' is undefined.
  14. MainForm MainForm-Opened(63) :  JMN2600I-S  The operand of the condition is invalid.
  15. MainForm MainForm-Opened(63) :  JMN2557I-S  The format of the IF statement is incomplete.
  16. MainForm MainForm-Opened(104) :  JMN2510I-S  'END-IF' does not correspond. 'END-IF' is ignored.
  17. MainForm MainForm-Opened(144) :  JMN1479I-S  The concatenation expression is too long. A literal is created using the first parts of the expression so that it does not exceed the maximum length.
  18. MainForm MainForm-Opened(148) :  JMN2503I-S  User word 'ST-OK' is undefined.
  19. MainForm MainForm-Opened(148) :  JMN2600I-S  The operand of the condition is invalid.
  20. MainForm MainForm-Opened(148) :  JMN2557I-S  The format of the IF statement is incomplete.
  21. MainForm MainForm-Opened(153) :  JMN2510I-S  'END-IF' does not correspond. 'END-IF' is ignored.
KalEl is offline   Responder Con Cita
  #12
Antiguo 11 de octubre de 2017, 10:46
Kuk
Administrador
Última Actividad 19.09.2026 20:11
Posts Posts: 2.500
Likes enviados Enviados: 1037
Likes recibidos Recibidos: 1207

KalEl, has copiado/pegado mal el código. Si usas el editor de PowerCOBOL, el código debe comenzar en la columna 2, que es lo que hace el código que te he pasado.



NORMAS DEL FORO - para garantizar el buen funcionamiento del Foro.
¿Te han ayudado? NO TE OLVIDES de darle a
¿Quieres dirigirte a alguien en tu post? Notifícale haciendo clic en su Nick
Kuk is offline   Responder Con Cita
  #13
Antiguo 11 de octubre de 2017, 22:32
KalEl
Forero Junior
Última Actividad 30.05.2018 21:37
Posts Posts: 14
Likes enviados Enviados: 1
Likes recibidos Recibidos: 0

Kuk..

acá un amigo me opaso una solucion a este post:

Código COBOL:
  1.  ENVIRONMENT     DIVISION.
  2.  DATA            DIVISION.
  3.  WORKING-STORAGE SECTION.
  4.  #INCLUDE "EXTERIOR.CPY".
  5.  77  I PIC 999.
  6.  77  N PIC S9(10)V99.
  7.  77  FI8 PIC 9(8).
  8.  77  FF8 PIC 99/99/9999.
  9.  01  ARTI-PE.       *> copia de CARGAP con 1 solo renglon
  10.               03 LIB-PE PIC 9.              *> 1=Articulo libre
  11.               03 LRA-PE.                    *> Codigo articulo
  12.                  04 LIN-PE PIC X(6).           *> Linea
  13.                  04 RUB-PE PIC X(6).           *> Rubro
  14.                  04 ART-PE PIC X(18).          *> Articulo
  15.               03 CAN-PE PIC S9(8)V9(4).     *> Cantidad pedida
  16.               03 CEN-PE PIC S9(8)V9(4).     *> Cantidad entregada
  17.               03 DES-PE PIC X(40).          *> Descripcion
  18.               03 DEA-PE PIC X(40).          *> Descripcion Adicional
  19.               03 CUN-PE PIC 9(6)V99.        *> Cantidad de Unidades
  20.               03 MUN-PE PIC X(10).          *> Medida de la Unidad
  21.               03 RIB-PE PIC 99.             *> Rubro Ing.Brutos
  22.               03 CTA-PE PIC 9(4).           *> Imp.Contable
  23.               03 UNI-PE PIC S9(8)V9(4).     *> Valor Unitario
  24.               03 IMI-PE PIC S9(7)V9(4).     *> Imp.Internos
  25.               03 ALI-PE PIC 99V99.          *> Alicuota de Iva
  26.               03 DE1-PE PIC S999V99.        *> % Rc/Dto 1
  27.               03 DE2-PE PIC S99V99.         *> % Rc/Dto 1
  28.               03 IMP-PE PIC S9(8)V99.       *> Importe
  29.               03 FEE-PE PIC 9(8).           *> Fecha de Entrega
  30.               03 OBS-PE PIC X(40).          *> Observaciones
  31.               03 SUB-PE PIC X(60).          *> Subdivision
  32.  
  33.  01  CARGA.
  34.      02 ARTI00.
  35.               03 LIB00 PIC 9.              *> 1=Articulo libre
  36.               03 LRA00.
  37.                  04 LIN00 PIC X(6).
  38.                  04 RUB00 PIC X(6).
  39.                  04 ART00 PIC X(18).
  40.               03 CAN00 PIC S9(8)V9(4).
  41.               03 DES00 PIC X(40).
  42.               03 DEA00 PIC X(40).
  43.               03 CUN00 PIC 9(6)V99.
  44.               03 MUN00 PIC X(10).
  45.               03 RIB00 PIC 99.
  46.               03 CTA00 PIC 9(4).
  47.               03 UNI00 PIC S9(8)V9(4).
  48.               03 IMI00 PIC S9(7)V9(4).
  49.               03 ALI00 PIC 99V99.
  50.               03 DE100 PIC S999V99.
  51.               03 DE200 PIC S99V99.
  52.               03 IMP00 PIC S9(8)V99.
  53.               03 SUB00 PIC X(60).
  54.  PROCEDURE DIVISION.
  55.  DECLARATIVES.
  56.  #INCLUDE "AR19.DEC".
  57.  #INCLUDE "AR38.DEC".
  58.  END DECLARATIVES.
  59.      MOVE 11 to "MousePointer" OF POW-SELF.
  60.  1.    
  61.      MOVE "CLIENTES.TXT" TO ARXXX OPEN OUTPUT RATIOS
  62.      MOVE "Cuenta         " TO XXX99(1)
  63.      MOVE "Nombre         " TO XXX99(2)
  64.      MOVE "Domicilio      " TO XXX99(3)
  65.      MOVE "Localidad      " TO XXX99(4)
  66.      MOVE "Provincia      " TO XXX99(5)
  67.      MOVE "Cuit           " TO XXX99(6)
  68.      MOVE "Iva            " TO XXX99(7)
  69.      MOVE "Vendedor       " TO XXX99(8)
  70.      MOVE "Cobrador       " TO XXX99(9)
  71.      MOVE "Zona           " TO XXX99(10)
  72.      MOVE "Mercado        " TO XXX99(11)
  73.      WRITE RXX
  74.      
  75.      OPEN INPUT CLIE  
  76.      INITIALIZE R19 SFA
  77.      START CLIE KEY NOT < CO19 INVALID MOVE 1 TO SFA
  78.        NOT INVALID READ CLIE NEXT NO LOCK.
  79.      PERFORM UNTIL SFA = 1
  80.         PERFORM PASO1 THRU FPASO1
  81.         READ CLIE NEXT NO LOCK AT END MOVE 1 TO SFA END-READ  
  82.      END-PERFORM.
  83.      CLOSE CLIE RATIOS.
  84.      MOVE 0 TO I IF I = 0 GO FIN.
  85.  
  86.  FIN.    
  87.      MOVE "  " TO "StatusText" OF POW-SELF
  88.      MOVE 1 TO "MousePointer" OF POW-SELF
  89.      INVOKE POW-SELF "Deactivate"
  90.      EXIT PROGRAM.
  91. * Paso un comprobante
  92.  PASO1.
  93.      MOVE CO19  TO XXX99(1)
  94.      MOVE NOM19 TO XXX99(2)
  95.      MOVE DOM19 TO XXX99(3)
  96.      MOVE COP19 TO XXX99(4)
  97.      MOVE PRO19 TO XXX99(5)
  98.      MOVE CUI19 TO XXX99(6)
  99.      EVALUATE TIV19
  100.        WHEN 1 MOVE "RI" TO TEX
  101.        WHEN 2 MOVE "RN" TO TEX
  102.        WHEN 3 MOVE "NR" TO TEX
  103.        WHEN 4 MOVE "EX" TO TEX
  104.        WHEN 5 MOVE "CF" TO TEX
  105.        WHEN 6 MOVE "RM" TO TEX
  106.        WHEN 7 MOVE "NC" TO TEX
  107.        WHEN OTHER MOVE "  " TO TEX
  108.      END-EVALUATE.
  109.      MOVE TEX TO XXX99(7)
  110.      MOVE VEN19 TO XXX99(8)
  111.      MOVE COB19 TO XXX99(9)
  112.      MOVE ZON19 TO XXX99(10)
  113.      MOVE MER19 TO XXX99(11)
  114.      WRITE RXX.
  115.  FPASO1.

Se compila bien, pero me da error en la línea "OPEN INPUT CLIE "

pero no explica nada de porque el error.. tendrás alguna idea?
KalEl is offline   Responder Con Cita
  #14
Antiguo 12 de octubre de 2017, 20:35
Josber
Moderador Global
Activista del Foro: Activista del Foro - Issue reason: Por aportar manuales y enriquecer  Agradecimientos: Por muchos agradecimientos de parte de los Foreros - Issue reason: Por muchos agradecimientos 
Última Actividad 20.09.2026 12:17
Posts Posts: 883
Likes enviados Enviados: 418
Likes recibidos Recibidos: 492

¿Dónde están las declaraciones de los archivos en la ENVIRONMENT y DATA DIVISION?

Un saludo.-
Josber is offline   Responder Con Cita
Respuesta



Derechos de Publicación
No puedes publicar nuevos temas
No puedes publicar posts/responder
No puedes adjuntar archivos
No puedes editar tus posts

BB code is habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado

Saltar a Foro


La franja horaria es GMT +2. Ahora son las 15:58.
Powered by: vBulletin, Versión 3.8.7
Derechos de Autor ©2000 - 2026, Jelsoft Enterprises Ltd.