Cobol Foro

Cobol Foro (https://www.cobolforo.es/index.php)
-   Micro Focus COBOL (https://www.cobolforo.es/forumdisplay.php?f=12)
-   -   [Sintaxis] Ejemplo MFSort en Linux (https://www.cobolforo.es/showthread.php?t=554)

Kuk 11 de enero de 2017 14:32

Ejemplo MFSort en Linux
 
Código Bash:
  1. #!/bin/bash
  2. FIC_SORTIN=/ruta_fichero_entrada
  3. FIC_SORTOUT=/ruta_fichero_salida
  4.  
  5. # USE - fichero de entrada
  6. # RECORD - tipo de registro
  7. # F - fijo / V - variable
  8. # ,100 - longitud del fichero fijo / ,20,100 - longitudes mínima y máxima fichero variable
  9. # ORG - organización
  10. # LS - organización Line-Sequential / RS Record-Sequential
  11. # GIVE - fichero de salida
  12.  
  13. mfsort sort fields "(1,7,CH,A)" use $FIC_SORTIN record f,100 org ls give $FIC_SORTOUT


La franja horaria es GMT +2. Ahora son las 01:26.

Powered by: vBulletin, Versión 3.8.7
Derechos de Autor ©2000 - 2026, Jelsoft Enterprises Ltd.