Ver Mensaje Individual
  #38
Antiguo 28 de abril de 2017, 16:16
Kuk
Administrador
Última Actividad 03.10.2026 00:00
Posts Posts: 2.500
Likes enviados Enviados: 1038
Likes recibidos Recibidos: 1207

fastpho, estás haciendo llamada estática:

Código COBOL:
  1.      CALL "FUNC" WITH  STDCALL   USING BY VALUE sPort

Quítale las comillas al FUNC para que tire de la varibale WORKING y no lo tome por literal:

Código COBOL:
  1.  ENVIRONMENT     DIVISION.
  2.  DATA            DIVISION.
  3.  WORKING-STORAGE SECTION.
  4.  01  FUNC  PIC X(10). *>  nombre función <===[
  5.  01  sPort         PIC S9(9) COMP-5.
  6.  01  InBuffer      PIC X(250).
  7.  01  BufferLen     PIC S9(9) COMP-5.  
  8.  PROCEDURE       DIVISION.
  9.      MOVE "setComPort" TO FUNC. *>  nombre función <===[
  10.      MOVE 1 TO sPort *> activamos COM1
  11.    
  12.      CALL FUNC WITH  STDCALL USING BY VALUE sPort



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