RE: python As400

Discussion in 'Python' started by Enrique, Jan 27, 2004.

  1. Enrique

    Enrique Guest

    Hi all again.
    I tried python for as400 and it works!
    Now, 2 questions:
    1.- for debuging, how can i see the "print" i code in a script??
    Only in python console, doing execfile ("script.py") i can see, but, is
    there a more fair mode??

    2.- files in as400 are in ebcdic. But i need to work in ascii to sort de
    data later. Can i work in as400 with ascii files?

    (sorry, but i´m a very newbie, and a very very very newbie in as400)

    -----Mensaje original-----
    De: python-list-bounces+enrique.palomo=
    [mailto:python-list-bounces+enrique.palomo=]En
    nombre de Jarek Zgoda
    Enviado el: miércoles, 21 de enero de 2004 20:29
    Para:
    Asunto: Re: python As400


    Enrique <> pisze:

    > i checked before this website, http://www.iseriespython.com/, but found no
    > much information in it (docs)


    Sorry, I meant "check this site to read documentation for
    AS/400-specific modules".

    > worse? how much worse? more worse that can be assumed?


    I don't know, I never tried to measure it.

    > and connect python on windows with db2 in as400??


    No chance except ODBC (http://www.egenix.com/) or ADO (i.e. adodbapi on
    SourceForge), anyway you will need Client Access installed.

    --
    Jarek Zgoda
    Unregistered Linux User #-1
    http://www.zgoda.biz/ JID:zgoda-a-chrome.pl http://zgoda.jogger.pl/
    --
    http://mail.python.org/mailman/listinfo/python-list



    **AVISO DE CONFIDENCIALIDAD**
    La información contenida en este mensaje y archivos es privada y confidencial estando dirigida solamente al destinatario. Si Ud. ha recibido esta información por error, por favor, proceda a su inmediata destrucción. Cualquier opinión o punto de vista contenido en este mensaje corresponde al remitente y necesariamente no representa la opinión del GRUPO XEROX.
     
    Enrique, Jan 27, 2004
    #1
    1. Advertising

  2. Enrique

    Jarek Zgoda Guest

    Enrique <> pisze:

    > 2.- files in as400 are in ebcdic. But i need to work in ascii to sort de
    > data later. Can i work in as400 with ascii files?


    Sure. You can use codecs.open() to open such files, this will provide
    you with transparent decoding to unicode objects during reading. To
    write ascii, use encode() function of unicode object to get string in
    desired encoding. I found working with unicode objects more convenient,
    although re.UNICODE is broken.

    --
    Jarek Zgoda
    Unregistered Linux User #-1
    http://www.zgoda.biz/ JID:zgoda-a-chrome.pl http://zgoda.jogger.pl/
     
    Jarek Zgoda, Jan 27, 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. =?Utf-8?B?RC5TYXJhdmFuYW4=?=

    DB_E_BADPROPERTYVALUE error when connecting to AS400 db2 udb

    =?Utf-8?B?RC5TYXJhdmFuYW4=?=, Jun 18, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    488
    =?Utf-8?B?RC5TYXJhdmFuYW4=?=
    Jun 18, 2004
  2. Manuel Arroba
    Replies:
    0
    Views:
    2,070
    Manuel Arroba
    Jun 28, 2004
  3. Cor Ligthert

    Re: AS400 And ADOx

    Cor Ligthert, Sep 14, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    628
    Cor Ligthert
    Sep 14, 2004
  4. Enrique

    python As400

    Enrique, Jan 20, 2004, in forum: Python
    Replies:
    2
    Views:
    643
    Jarek Zgoda
    Jan 20, 2004
  5. Enrique

    RE: python As400

    Enrique, Jan 21, 2004, in forum: Python
    Replies:
    2
    Views:
    911
Loading...

Share This Page