RE: How to read files written with COBOL

Discussion in 'Python' started by Batista, Facundo, May 10, 2004.

  1. [John Roth]

    #- What's the OS for the two languages? COBOL from mainframe
    #- to X86ish is very different from some flavor of Windows or Unix
    #- COBOL.

    COBOL RM-85 for x86 under SCO.


    #- Also, are we talking fixed or variable length records? And if
    #- variable, how are they structured?

    There're a lot of different structures, there're a lot of files. I was
    thinking of a function where I tell the COBOL file structure and it
    translates it to me.


    #- In either case, I think the struct module (under String Services)
    #- is what you're looking for.

    I think that if I must *build* the module that I'm looking for, I'll use the
    struct module. But that I can not use it directly without a lot of effort
    (that I'm willing to avoid: that's why I'm searching for something already
    done, :)

    .. Facundo





    .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . .
    .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . .
    .. . . . . . . . . . . . . . .
    ADVERTENCIA

    La información contenida en este mensaje y cualquier archivo anexo al mismo,
    son para uso exclusivo del destinatario y pueden contener información
    confidencial o propietaria, cuya divulgación es sancionada por la ley.

    Si Ud. No es uno de los destinatarios consignados o la persona responsable
    de hacer llegar este mensaje a los destinatarios consignados, no está
    autorizado a divulgar, copiar, distribuir o retener información (o parte de
    ella) contenida en este mensaje. Por favor notifíquenos respondiendo al
    remitente, borre el mensaje original y borre las copias (impresas o grabadas
    en cualquier medio magnético) que pueda haber realizado del mismo.

    Todas las opiniones contenidas en este mail son propias del autor del
    mensaje y no necesariamente coinciden con las de Telefónica Comunicaciones
    Personales S.A. o alguna empresa asociada.

    Los mensajes electrónicos pueden ser alterados, motivo por el cual
    Telefónica Comunicaciones Personales S.A. no aceptará ninguna obligación
    cualquiera sea el resultante de este mensaje.

    Muchas Gracias.
     
    Batista, Facundo, May 10, 2004
    #1
    1. Advertising

  2. Batista, Facundo

    Steve Holden Guest

    Batista, Facundo wrote:

    > [John Roth]
    >
    > #- What's the OS for the two languages? COBOL from mainframe
    > #- to X86ish is very different from some flavor of Windows or Unix
    > #- COBOL.
    >
    > COBOL RM-85 for x86 under SCO.
    >
    >
    > #- Also, are we talking fixed or variable length records? And if
    > #- variable, how are they structured?
    >
    > There're a lot of different structures, there're a lot of files. I was
    > thinking of a function where I tell the COBOL file structure and it
    > translates it to me.
    >
    >
    > #- In either case, I think the struct module (under String Services)
    > #- is what you're looking for.
    >
    > I think that if I must *build* the module that I'm looking for, I'll use
    > the struct module. But that I can not use it directly without a lot of
    > effort (that I'm willing to avoid: that's why I'm searching for
    > something already done, :)
    >

    So what you'd like is to be able to process a set of COBOL PICTURE
    specifications and produce a program module that could read the file
    described? I suspect you'll have to write that yourself. But think how
    many other people will find it useful!

    regards
    Steve
     
    Steve Holden, May 10, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ferro
    Replies:
    7
    Views:
    14,723
    Dave Monroe
    Oct 29, 2003
  2. cobol and binary data written by C

    , May 9, 2004, in forum: C Programming
    Replies:
    5
    Views:
    546
    Lew Pitcher
    May 10, 2004
  3. Batista, Facundo

    How to read files written with COBOL

    Batista, Facundo, May 10, 2004, in forum: Python
    Replies:
    7
    Views:
    1,231
    Buck Nuggets
    May 14, 2004
  4. none
    Replies:
    2
    Views:
    643
    Dennis Lee Bieber
    Sep 22, 2005
  5. Gabkin

    read COBOL index file with perl

    Gabkin, Jul 5, 2004, in forum: Perl Misc
    Replies:
    4
    Views:
    566
    Gabkin
    Jul 5, 2004
Loading...

Share This Page