[NEWSboard IBMi Forum]
  1. #1
    Registriert seit
    Sep 2004
    Beiträge
    136

    Open Option des API QSQPRCED

    Hallo, ich bekomme es einfach nicht hin.

    kann mir jemand die Hex Codes dafür geben?

    das habe ich bisher zusammen gesucht und ich hoffe die Stimmen.
    Read = X'80'
    Write = X'F0'
    Update = X'A0'

    nur wie ist der Delete?
    Delete = ????

    Gruß
    Xanas

  2. #2
    Registriert seit
    Feb 2001
    Beiträge
    20.241
    Die API-Beschreibung findest du hier:
    Process Extended Dynamic SQL (QSQPRCED) API
    Dienstleistungen? Die gibt es hier: http://www.fuerchau.de
    Das Excel-AddIn: https://www.ftsolutions.de/index.php/downloads
    BI? Da war doch noch was: http://www.ftsolutions.de

  3. #3
    Registriert seit
    Sep 2004
    Beiträge
    136
    Danke schon mal für die schnelle Antwort, aber genau aus dieser werde ich nicht wirklich schlau.

    Open options. The open options used on an SQL cursor. These are specified using the following bits:
    Bit(0) Read
    Bit(1) Write
    Bit(2) Update
    Bit(3) Delete

    For example, if a cursor is only for FETCH statements, the bit pattern should be '10000000'B or hex 80. If update capability is needed, the bit pattern should be '10100000'B. The syntax in the SQL statement takes precedence over the open options. This means that the FOR UPDATE OF and FOR FETCH ONLY clauses will be honored, even if they do not coincide with the requested open options. The open options are required for functions 2 and 4. They are ignored for other functions.

  4. #4
    Registriert seit
    Feb 2001
    Beiträge
    20.241
    Ein Einbytefeld wird von links nach rechts mit den Bit's gezählt, daher kann man mit RPG auch den BITON-Befehl verwenden:

    BITON 0 FELD

    In ILE gibts dafür %bitor(...);
    Also

    Feld = %bitor(b'1000000':Feld)

    Wenn du die Kombination direkt kennst, kannst du auch so zweisen:

    Feld = B'11110000';

    Damit entfällt die Hexrechnerei.
    Dienstleistungen? Die gibt es hier: http://www.fuerchau.de
    Das Excel-AddIn: https://www.ftsolutions.de/index.php/downloads
    BI? Da war doch noch was: http://www.ftsolutions.de

Similar Threads

  1. Die schiere Verzweiflung !!:-(((
    By markus.ohliger in forum IBM i Hauptforum
    Antworten: 41
    Letzter Beitrag: 14-05-10, 10:39
  2. Probleme API QUSLJOB aufzurufen
    By TMusolf in forum NEWSboard Programmierung
    Antworten: 4
    Letzter Beitrag: 25-01-07, 12:42
  3. 5722SS1 / Option 22+26
    By Andreas Herzfeldt in forum IBM i Hauptforum
    Antworten: 1
    Letzter Beitrag: 05-11-06, 02:15
  4. Option 33 des Betriebssystems gesucht
    By TARASIK in forum IBM i Hauptforum
    Antworten: 2
    Letzter Beitrag: 14-01-05, 08:00
  5. Embedded SQL - Datenbankoptionen in VARPG
    By woki in forum NEWSboard Programmierung
    Antworten: 2
    Letzter Beitrag: 13-04-04, 12:09

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • You may not post attachments
  • You may not edit your posts
  •