Ver Mensaje Individual
  #2
Antiguo 2 de noviembre de 2015, 15:10
Kuk
Administrador
Última Actividad 19.09.2026 20:11
Posts Posts: 2.500
Likes enviados Enviados: 1037
Likes recibidos Recibidos: 1207

Recato53, para este tipo de cosas, debes usar sea WinAPI, sea la librería CBL_ que trae Fujitsu.

Ejemplo de la CBL para crear directorio:

Código:
CBL_CREATE_DIR2 creates a directory. The difference between the
CBL_CREATE_DIR subroutine and this subroutine is that this subroutine can support
a directory name containing a space.
Código COBOL:
  1.  WORKING-STORAGE SECTION.  
  2.  01 path-name PIC X(n).
  3.  01 status-code PIC S9(4) COMP-5.
  4.  PROCEDURE DIVISION.
  5.      CALL "CBL_CREATE_DIR2" USING path-name RETURNING status-code.

Código:
Interface
path-name
Specifies a full or partial path name, ending with a null character. The maximum size
of the path name is 248.
Return code
The return code is set in the status-code specified in the RETURNING clause.
status-code
0: Successful
Other than 0: Failure
Recuerda que para que esto funcione, debes añadir la F3BICBLR.LIB que se encuentra en %programfiles%\Fujitsu NetCOBOL for Windows a tu proyecto.

Para ver todas las funciones, mira el PDF en adjuntos.
Imágenes Adjuntas
Tipo de Archivo: pdf NetCOBWinCBLSubGuide.pdf (2,32 MB)Descargas: 216



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